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)