gl.unequal: Generate Levels with Unequal Sample SIzes

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

Description

Produces a vector of samples of unequal sizes. Useful when observations are already sorted into groups by levels.

Usage

1
gl.unequal(n = "number of levels", k = "numeric vector of sample sizes")

Arguments

n

Scalar determining the number of levels.

k

Numeric vector specifying the sample size at each level.

Value

Produces a factored vector.

Note

Be sure that you precisely specify the above arguments to correspond to your observation vector.

Author(s)

Matthew K. Lau, Department of Biological Sciences, Northern Arizona University, AZ

See Also

gl, rep

Examples

1
gl.unequal(n=3,k=c(25,30,35))

BitEcology/DTK documentation built on May 28, 2019, 5:43 a.m.