R Reading in a zip data file without unzipping it

后端 未结 7 2247
青春惊慌失措
青春惊慌失措 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

提交回复
热议问题