Getting error in file(file, “rt”): cannot open the connection

前端 未结 4 749
滥情空心
滥情空心 2021-01-22 14:04

I am running the following code...

#Create a list of all the files
file.list <- list.files(path=\"~/R/natural-language-processing/class-notes\", pattern=\".cs         


        
4条回答
  •  遥遥无期
    2021-01-22 14:42

    read.csv is looking for the file names in your working directory. By changing your working directory to "C:/Users/Bob/Documents/R/natural-language-processing/class-notes", your code should work just fine.

    Code:

    setwd("C:/Users/Bob/Documents/R/natural-language-processing/class-notes")
    

    Then re-run your code.

提交回复
热议问题