r - 错误 : unexpected symbol in read. csv 调用

标签 r

R 中的意外符号错误。请参见下文:

Error: unexpected symbol in infants.csv <- read.csv("C:\\Users\\alcos001\\Desktop\\Data for PubH7405\\infants.csv" header=TRUE)

我完全不知道意想不到的符号是什么。有人看到了吗?是拼写错误还是命令错误?

谢谢

最佳答案

您的函数调用中缺少逗号。应该阅读

read.csv("C:/Users/alcos001/Desktop/Data for PubH7405/infants.csv", header=TRUE)

关于r - 错误 : unexpected symbol in read. csv 调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19308154/

相关文章:

r - R-标签中的剪切函数,无需科学记数法,可在 ggplot2 中使用

r - R 中的多重 T 检验

在 R 中删除过于常见的单词(出现在 80% 以上的文档中)

r - R 的 bigvis 包不适用于 R 版本 3.0.1 吗?

r - 从内存中的文本中提取列

R: Apply.yearly sums 从 1 月不包括在内到次年的 1 月包括在内。我怎样才能使它从 12 月到 12 月总和?

r - 使用confusioMatrix时如何解决 "The data cannot have more levels than the reference"错误?

r - 避风港 : read_dta error() "Failed to parse/Users/folder/my_data.dta: Unable to allocate memory."

performance - 使用 do.call 和 ldply 将长长的 data.frames 列表(约 100 万)转换为单个 data.frame 时遇到问题

r - 如何在R中使用特定模式重命名文件?