import - R Error: unknown input format -


nei <- readrds(unz(tf, filename = "summaryscc_pm25.rds", open = "", encoding = getoption("encoding"))) 

variable tf temporary file specific location saved on hard drive. understanding format unz() is:

unz(description, filename, open = "", encoding = getoption("encoding")) 

as read documentation, interpreting application of code accurate that:

  1. description specific zip file destination, outputs in var tf c://...//345du.zip
  2. filename summaryscc_pm25.rds, file extracted from tf
  3. open established in var black should fine
  4. encoding labels language type.

within context of code above, receive "error: unknown input format" r 3.1.1. need clarification on might happening interpret code same as:

nei <- readrds("summaryscc_pm25.rds") 

am misinterpreting this?

i found data online can read file. available here:

https://www.linkedin.com/today/post/article/20140617173447-5576436-explore-n-analyze-data-assignment-2

> unzip("c:\\users\\jmiller\\downloads\\exdata_data_nei_data.zip") > nei <- readrds("summaryscc_pm25.rds") > dim(nei) [1] 6497651       6 > colnames(nei) [1] "fips"      "scc"       "pollutant" "emissions" "type"      "year"     

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -