Unable to check variable class in a data frame in R

dataexploration
r
data_science
dataframe

#1

Hi,

i am getting below error when running command reg <-table(pollution$region).Please advise?

Error: class(objId) == “jobj” is not TRUE


#2

Hi @ksmvsn

This error occurred because R couldn’t read any file or variable. Trying loading the data set again and run your analysis. To check our hypothesis, you should try checking:
class(pollution)
colnames(pollution
If this works, next you should check if there exists a variable region the the pollution data set. Looks like there is no variable either.

Regards
Manish