提问人:Hailey Phillips 提问时间:11/17/2023 最后编辑:PhilHailey Phillips 更新时间:11/17/2023 访问量:21
由于逗号“”而出现错误,但它是函数的一部分?[关闭]
Getting errors because of commas "," but its part of the function? [closed]
问:
我正在尝试改变一个新列,但它一直说意想不到的符号“,”。我很确定我的逗号在正确的位置
代码如下:
netefforts6 <- netefforts5 %>%
mutate(nettypee = case_when((nettype == "Fyke23" ~ "Fyke 2023",
nettype == "SinkingGill22" ~ "Sinking 2022",
nettype == "SinkingGill23" ~ "Sinking 2023",
nettype=="FloatingGill23" ~ "Floating 2023")))
这是错误消息:
Error: unexpected ',' in "netefforts6<-netefforts5 %>% mutate(nettypee=case_when((nettype%in%"Fyke23"~"Fyke 2023","
有人知道问题出在哪里吗?
答: 暂无答案
评论