as.fixed | R Documentation |
Assigns a class "fixed"
to a vector
as.fixed(x)
x |
a vector of data, usually a nominal variable. |
The function works the same way as as.factor
, but assigns an additional class informing that it is a fixed factor.
Function as.fixed
returns an object of class "factor"
and "fixed"
.
Leonardo Sandrini-Neto (leonardosandrini@ufpr.br)
as.random
library(GAD)
data(rohlf95)
CG <- as.fixed(rohlf95$cages)
MQ <- as.random(rohlf95$mosquito)
class(CG)
class(MQ)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.