Learn R Programming

BSDA (version 1.01)

Parented: Education backgrounds of parents of entering freshmen at a state university

Description

Data for Exercise 1.32

Usage

Parented

Arguments

Format

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

Educat

a factor with levels 4yr college degree Doctoral degree Grad degree H.S grad or less Some college Some grad school

Mother

a numeric vector

Father

a numeric vector

Examples

Run this code
# NOT RUN {
str(Parented)
attach(Parented)
MAT <- cbind(Mother, Father)
row.names(MAT) <- Educat 
MAT 
barplot(t(MAT),beside=TRUE,legend=TRUE,col=c("blue","red")) 
detach(Parented) 
remove(MAT)
# }

Run the code above in your browser using DataLab