Error: (list) object cannot be coerced to type 'double'
程序员文章站
2022-05-30 21:34:59
...
Error: (list) object cannot be coerced to type 'double’的问题解决方案
> data5b2<-as.numeric(data5b1)
Error: (list) object cannot be coerced to type 'double'
想要一个数据框里的左右数据转化为数值型时,出现以下报错
Error: (list) object cannot be coerced to type 'double'
通过**unlist()**函数完美解决
> data5b2<-as.numeric(unlist(data5b1))