library(dplyr) Q12 = 41:45)
mutate(Q12_test = case_when条件,我已经使用了数百次,但是由于一个我不明白的原因,它是错误的:Error in `mutate()`:
!Problem while computing `Q12_test = case_when(...)`.Caused by er
我将case_when应用于数千行的文本数据,以检测具有多个条件的字符串并替换它们,但得到了错误的结果,因为case_when在满足条件后不会执行剩余的条件。我在How to detect more than one regex in a case_when statement中看到了一种解决方案,但该解决方案没有像我的数据中那样具有多种条件。case_when的任何替代方案都将受到欢迎。right")),
class = "