Error: (list) object cannot be coerced to type 'double'

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))

你可能感兴趣的:(大数据操作,Error:,(list),object,cannot,be,type,'double')