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