I have a data set where the variable Tier
can be 1, 2, 3 , or 4. I need to find the mean of Full.time
for each type of Tier
. Here is my code:
mean(my_data$Full.time ~ my_data$Tier)
and here is my error message:
[1] NA
Warning message:
In mean.default(my_data$Full.time ~ my_data$Tier) :
argument is not numeric or logical: returning NA
(I also have to do the same thing with standard deviation but I assume the correct answer will be the same with sd()
instead of mean()
)
Here is the file: