小编an2*_*825的帖子

在文件中获取错误(文件,“ rt”):无法打开连接

我正在运行以下代码...

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

#Loop over file list importing them and binding them together
D1 <- do.call("rbind",lapply(file.list, read.csv, header = TRUE, stringsAsFactors = FALSE))
Run Code Online (Sandbox Code Playgroud)

这是我在do.call上面的行中运行时遇到的错误。

文件错误(文件,“ rt”):无法打开连接

我试过重设我的wd。我目前getwd()

~/R/natural-language-processing
Run Code Online (Sandbox Code Playgroud)

我看过另一个

文件错误(文件,“ rt”):无法打开连接

r read.table read.csv

2
推荐指数
1
解决办法
8057
查看次数

标签 统计

r ×1

read.csv ×1

read.table ×1