R Reading in a zip data file without unzipping it

后端 未结 7 2127
青春惊慌失措
青春惊慌失措 2020-12-04 15:22

I have a very large zip file and i am trying to read it into R without unzipping it like so:

temp <- tempfile(\"Sales\", fileext=c(\"zip\"))
data <- re         


        
相关标签:
7条回答
  • 2020-12-04 15:58

    No need to use unz, as now read.table can handle the zipped file directly:

    data <- read.table("Sales.zip", nrows=10, header=T, quote="\"", sep=",")
    

    See this post

    0 讨论(0)
提交回复
热议问题