is.random {GAD} | R Documentation |
Check if a factor is random
Description
This function works the same way as is.factor
.
Usage
is.random(x)
Arguments
x |
a vector of data, usually a nominal variable encoded as a |
Value
Function is.random
returns TRUE
or FALSE
depending on whether its argument is a random factor or not.
Author(s)
Leonardo Sandrini-Neto (leonardosandrini@ufpr.br)
See Also
Examples
library(GAD)
data(rohlf95)
CG <- as.fixed(rohlf95$cages)
MQ <- as.random(rohlf95$mosquito)
is.fixed(CG)
is.random(MQ)
[Package GAD version 2.0 Index]