Creating zip file from folders in R

前端 未结 5 1323
故里飘歌
故里飘歌 2021-02-13 12:12

Try to create a zip file from one folder using R.

It mentioned \"Rcompression\" package here: Creating zip file from folders

But I didn\'t find where I can downl

5条回答
  •  迷失自我
    2021-02-13 12:53

    Make that

        #Convertir todas las carpetas en .zip
        d <- "C:/Users/Eric/Documents/R/win-library/3.3"
        array <- list.files(d)
    
        for (i in 1:length(array)){
          name <- paste0(array[i],".zip")
    
          zip(name, files = paste0(d,paste0("/",array[i])))
        }
    

提交回复
热议问题