So I am trying to work out the mean for a column on my dataset. When I use the code
mean(dataset$`name of column`)
it returns
'argument is not numeric or logical: returning NA'.
I have tried various ways to try and get around it but nothing will work
Initially the data had NA
values, which I though was the issue, in it but I have removed them, by creating a dataframe, yet it still returns the same error message. I don't understand why this has happened as all data is numerical.
Sorry if this isn't well explained I'm pretty new to R.