Here is a basic R program for doing a simple linear regression. Below I'll show some common modifications that one might want to add that aren't intuitive to add.
First, we import the data, in this case from a comma separated variable file.
emp <- read.table("/Vols/duphenix/Docs/self_emp/employ.csv",header=TRUE,sep="," )
I'll explain each piece