error when trying to convert co2 data into kg per capita

datw$CO2k=1000*(datw$CO2)
Error in 1000 * (datw$CO2) : non-numeric argument to binary operator

It seems that datw$CO2 is not numeric. You can check this with

class(datw$CO2)

If it is indeed not numeric, please post the output of

dput(head(datw$CO2))

so we can see what type of data is in the CO2 column.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.