GAD (version 1.1.1)

as.random: Encodes a vector as a "random factor"

Description

Assigns a class "random" to a vector

Usage

as.random(x)

Arguments

x
a vector of data

Value

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

Details

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

See Also

as.fixed

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