Learn R Programming

BSDA (version 1.01)

Tonsils: Size of tonsils collected from 1,398 children

Description

Data for Exercise 2.78

Usage

Tonsils

Arguments

Format

A data frame with 3 observations on the following 3 variables.

Size

a factor with levels Large Normal Very Large

Carrier

a numeric vector

Non.carrier

a numeric vector

Examples

Run this code
# NOT RUN {
str(Tonsils)
attach(Tonsils)
TON <- as.matrix(Tonsils[,2:3])
rownames(TON) <- Size
TON
barplot(t(TON),beside=TRUE,legend=TRUE)
remove(TON)
detach(Tonsils)
# }

Run the code above in your browser using DataLab