I have a dataset I've cleaned the data in. No Nas. However when I try to calculate the mean from a specific column called 'Age', i get a 'NA' result. Min and Max age as well as Sd are correctly calculated.
The code I'm using is:
Thank you for the fast response. I've tried doing that and the result is pretty much the same.. I think it could be that Age is coded as a character variable? But I am not sure how to change this since i get similar results with as.numeric(dem_data2$Age)?