is.random {GAD} | R Documentation |
This function works the same way as is.factor
.
is.random(x)
x |
a vector of data, usually a nominal variable encoded as a |
Function is.random
returns TRUE
or FALSE
depending on whether its argument is a random factor or not.
Leonardo Sandrini-Neto (leonardosandrini@ufpr.br)
library(GAD)
data(rohlf95)
CG <- as.fixed(rohlf95$cages)
MQ <- as.random(rohlf95$mosquito)
is.fixed(CG)
is.random(MQ)