GAD (version 1.1.1)

as.fixed: 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

Value

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

Details

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

See Also

as.random

Examples

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

Run the code above in your browser using DataLab