r - How to solve the issue of fread txt with EOF? -


i trying read climate station info ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt. however, since first row not populated (last 2 cols missing) , 5th column contains spaces, unable complete reading with:

fread('ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt',sep=) 

it returns error message:

 expected sep (' ') new line, eof (or other non printing character) ends   field 5 when detecting types point 0: age00135039  35.7297    0.6500     50.0    oran-hopital militaire      

how apply fread correctly on reading txt file? thank you!


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -