Data for Exercise 10.14
A data frame/tibble with 7 observations on three variables
1999 salary (in $1000) for board directors
a factor with levels
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(salary ~ university, data = Board, col = c("red", "blue", "green"), ylab = "Income") tapply(Board$salary, Board$university, summary) anova(lm(salary ~ university, data = Board)) ## Not run: library(dplyr) dplyr::group_by(Board, university) %>% summarize(Average = mean(salary)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.