文武帅三全 2021-05-07 13:44 采纳率: 0%
浏览 27

r语言 多字节字符串8有错 怎么解决?

setwd("D:/RBook/")
> BFCases <- read.table(file="BirdFluCases.txt", header = TRUE)
Error in make.names(col.names, unique = TRUE) : 多字节字符串8有错
> help("read.table")
> BFCases <- read.table(file="BirdFluCases.txt", header = TRUE,sep = "")
Error in make.names(col.names, unique = TRUE) : 多字节字符串8有错

  • 写回答

1条回答 默认 最新

  • AA-老高(接毕设) 2024-07-08 09:56
    关注

    BFCases <- read.table(file = "BirdFluCases.txt", header = TRUE, fileEncoding = "UTF-8")

    评论

报告相同问题?