as.fixed {GAD}R Documentation

Encodes a vector as a "fixed factor"

Description

Assigns a class "fixed" to a vector

Usage

as.fixed(x)

Arguments

x

a vector of data, usually a nominal variable.

Details

The function works the same way as as.factor, but assigns an additional class informing that it is a fixed factor.

Value

Function as.fixed returns an object of class "factor" and "fixed".

Author(s)

Leonardo Sandrini-Neto (leonardosandrini@ufpr.br)

See Also

as.random

Examples

library(GAD)
data(rohlf95)
CG <- as.fixed(rohlf95$cages)
MQ <- as.random(rohlf95$mosquito)
class(CG)
class(MQ)

[Package GAD version 2.0 Index]