- library(stringr)
- newdata<-str_replace_all(olddata,"married","1")
- newdata2<-str_replace_all(newdata,"unmarried","0")
楼主: Asura2
|
15677
3
[有偿编程] r语言运用replace函数替换数据 |
高中生 60%
-
|
|
| ||||||||
| ||||||||
| ||||||||
京ICP备16021002-2号 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明