R/DATA_doby.R
math_teachers.Rd
Height of a sample of math teachers in Danish high schools collected at a continued education day at Mariager Fjord Gymnasium in 2019.
math_teachers
An object of class tbl_df (inherits from tbl, data.frame) with 30 rows and 2 columns.
tbl_df
tbl
data.frame
aggregate(height ~ sex, data=math_teachers, FUN=mean) #> sex height #> 1 male 180.3750 #> 2 female 169.9286 aggregate(height ~ sex, data=math_teachers, FUN=function(x) {c(mean=mean(x), sd=sd(x))}) #> sex height.mean height.sd #> 1 male 180.375000 5.149434 #> 2 female 169.928571 3.791981