Hist() function object not found

Hi there,

I am trying to get my hist() function to work but when I put the variable 'income' as the x, it says object not found even though income is in my dataset. I am not sure how to fix this.

Screen Shot 2022-06-04 at 3.01.21 PM

If your dataset is df, try hist(df$income)

Here is the previous code:

If your dataset is named dataset, try hist(dataset$income)

Hi @MannyBajwa
Try with this:

hist(dataset$obs)