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

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Assigns a class "fixed" to a vector

Usage

1

Arguments

x

a vector of data

Details

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

Value

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

Author(s)

Leonardo Sandrini-Neto (leonardosandrini@gmail.com)

See Also

as.random

Examples

1
2
3
4
library(GAD)
data(rohlf95)
CG <- as.fixed(rohlf95$cages)
MQ <- as.random(rohlf95$mosquito) 

Example output

Loading required package: matrixStats
Loading required package: R.methodsS3
R.methodsS3 v1.7.1 (2016-02-15) successfully loaded. See ?R.methodsS3 for help.

GAD documentation built on May 2, 2019, 3:01 a.m.