[英]Using recode in dplyr with inequalities
Is it possible to recode a variable using an inequality in recode in dplyr? 是否可以在dplyr中使用不等式重新编码变量?
x <- 1:10
recode(x,x>5= 11)
I've looked around a bunch and can't find if this is possible. 我环顾了一堆,找不到是否有可能。
Thanks 谢谢
是您要找的东西吗?
x[x>5]<-11
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.