so I was trying to convert my data fruit veg into numeric
I used class(fruit veg) and it showed [1] data.frame
then I used
my_data_num <- as.numeric(fruitveg)
so it showed this error
Error: 'list' object cannot be coerced to type 'double'
what am I doing wrong??