Learn R Programming

ggmcmc (version 1.5.1.1)

gl_unq: Generate a factor with unequal number of repetitions.

Description

Generate a factor with levels of unequal length.

Usage

gl_unq(n, k, labels = 1:n)

Arguments

n

number of levels

k

number of repetitions

labels

optional vector of labels

Value

A factor

Details

Internal function to generate a factor with levels of unequal length, used by ggs_histogram.