at.set | R Documentation |
Incidence Matrix of Combined Levels within a Factor
at.set(x, level)
x |
factor |
level |
set of factor levels |
incidence matrix for the set level
in x
Jarrod Hadfield j.hadfield@ed.ac.uk
at.level
fac<-gl(3,10,30, labels=letters[1:3])
x<-rnorm(30)
model.matrix(~at.set(fac,2:3):x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.