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.

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

Here is the previous code:

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

1 Like

Hi @MannyBajwa
Try with this:

hist(dataset$obs)

This topic was automatically closed 21 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.