is.fixed {GAD}R Documentation

Check if a factor is fixed

Description

This function works the same way as is.factor.

Usage

is.fixed(x)

Arguments

x

a vector of data, usually a nominal variable encoded as a "fixed factor" using as.fixed.

Value

Function is.fixed returns TRUE or FALSE depending on whether its argument is a fixed factor or not.

Author(s)

Leonardo Sandrini-Neto (leonardosandrini@ufpr.br)

See Also

is.random, as.fixed

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]