读入.csv文件
The read.csv function can read CSV files. If your CSV file has a header line, use this: 公卫百科
> tbl <- read.csv("filename")If your CSV file does not contain a header line, set the header option to FALSE:
> tbl <- read.csv("filename", header=FALSE) 公卫人
Sometimes, you really want your data interpreted as strings, not as factors. In that case,
set the as.is parameter to TRUE; this indicates that R should not interpret nonnumeric
公卫百科
data as a factor:
> tbl <- read.csv("table-data.csv", as.is=TRUE)
> str(tbl)
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。