【845】R语言case_when函数
摘要:
参考:case_when: A general vectorised if Others 用 TRUE 表示,举例如下: x <- 1:50 case_when( x %% 35 == 0 ~ "fizz buzz", x %% 5 == 0 ~ "fizz", x %% 7 == 0 ~ "buz 阅读全文
posted @ 2023-06-29 14:49 McDelfino 阅读(218) 评论(0) 推荐(0)