gl.unequal {DTK} R Documentation

## Generate Levels with Unequal Sample SIzes

### Description

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

### Usage

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

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