加载数据集时解析错误

时间:2019-05-29 22:31:42

标签: r readr

下面的代码为我提供了自定义变量类型的功能,它不知道如何解释“ f”。有关如何解决此问题的任何想法?

library(readr)
data2014 <- read_csv("data2014.csv", col_types = cols(
  .default = "f",
  Time = col_skip(),
  Minutes = col_integer(),
  Seconds = col_integer(),
  Away = col_character(),
  Away_Points_Added = col_integer(),
  Score = col_character(),
  Home_Points_Added = col_integer(),
  Home = col_character()
))

错误:快捷方式未知:f

0 个答案:

没有答案