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

How to Fix Error: (list) object cannot be coerced to type ‘double’

> data5b2<-as.numeric(data5b1)
Error: (list) object cannot be coerced to type 'double'

When you want all the data in a data box to be numeric, the following error occurs

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

Perfect solution with **unlist()** function

> data5b2<-as.numeric(unlist(data5b1))

Read More: