inst/example/student4.R

 id <- c(1, 2, 3, 4, 5, 6)
 
 age <- c(30, 32, 28, 39, 20, 25)
 
 edu <- c(0, 0, 0, 0, 0, 0)
 
 classNames <- c( "poor", "middle")
 class <- rep( classNames, c(3, 3)) 
 factor( class, levels= classNames)
 
 indianMothers <- data.frame(id=id,
                              age,
                              edu,
                              class) 
 
 

Try the compare package in your browser

Any scripts or data that you put into this service are public.

compare documentation built on May 2, 2019, 10:24 a.m.