I'm trying to read this data : http://www.biostat.umn.edu/~brad/data/smoking.dat
to R.
I used the answer in http://stackoverflow.com/questions/11664075/import-dat-file-into-r
read.table("http://www.biostat.umn.edu/~brad/data/smoking.dat",
header=TRUE,, sep="\n", skip=2)
It works but gives wrong data.
head(x)
list.regions.81..num...c.8..5..3..8..5..1..6.
1 7, 3, 5, 7, 7, 2, 2, 5, 6, 6, 7, 4, 8, 7, 6,
2 6, 2, 8, 4, 4, 10, 4, 3, 7, 6, 5, 7, 7, 7, 5, 6, 4, 9, 4, 7,
3 4, 5, 9, 3, 7, 5, 5, 4, 5, 6, 6, 5, 2, 6, 2, 8, 7, 6, 5, 6,
4 3, 6, 6, 6, 6, 4, 10, 8, 3, 4, 2, 6, 5, 7, 7, 4, 7, 6,
5 2),sumnum=441,
6 adj=c(2, 5, 6, 8, 11, 45, 75, 80,
Actually, in this data there are some list.