I am trying to read in ASCII files in R.
The parent directory for the files can be found here. I would want to read in the county-level datasets for years 1970-1985. An example file is located here.
The exact format for the datafiles varies, for some it is: "ASCII, fixed-length fields with one record-delimiter (line feed)"; for others: "ASCII, fixed-length fields/records with two record-delimiters (carriage return and line feed); record length includes delimiters"
I tried to read in the data using read.table
, import.asc
and raster
as discussed in a previous question. However, they all produce an error.
Thanks for help!