search for: gnp80

Displaying 1 result from an estimated 1 matches for "gnp80".

Did you mean: gnp
2004 Oct 06
3
read.delim problem with trailing spaces
I'm trying to read a comma delimited dataset that uses '.' for NA. I found that if the last field on a line was a missing '.' it was not read as NA, but just a '.', and the life variable was made a factor. The data looks like this, income,imr,region,oilexprt,imr80,gnp80,life Afghanistan,75,400.0,4,0,185.0,.,37.5 Algeria,400,86.3,2,1,20.5,1920,50.7 Argentina,1191,59.6,1,0,40.8,2390,67.1 Australia,3426,26.7,4,0,12.5,9820,71.0 Austria,3350,23.7,3,0,14.8,10230,70.4 Bangladesh,100,124.3,4,0,139.0,120,. Belgium,3346,17.0,3,0,11.2,12180,70.6 Benin,81,109.6,2,0,109.6,300,...