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 "random factor" using as.random.

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

is.fixed, as.random

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]