I have successfully uploaded data, run shapiro, bartletts and one way anova on my data set however no matter what I try I can't seem to run TukeyHSD without getting some error message such as the one above this is what I have inputted is there something I am missing??
> my_data <- aov(yield~temp, data=Pectin)
> summary.aov(my_data)
Df Sum Sq Mean Sq F value Pr(>F)
temp 1 63.90 63.90 24.67 0.000327 ***
Residuals 12 31.09 2.59
> TukeyHSD(Pectin)
Error in UseMethod("TukeyHSD") :
no applicable method for 'TukeyHSD' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
> TukeyHSD(my_data)
Error in TukeyHSD.aov(my_data) : no factors in the fitted model
In addition: Warning message:
In replications(paste("~", xx), data = mf) : non-factors ignored: temp
> TukeyHSD(summary.aov(my_data))
Error in UseMethod("TukeyHSD") :
no applicable method for 'TukeyHSD' applied to an object of class "c('summary.aov', 'listof')"
Any help would be great!!