gpsWithin: Use given vector to identify groups with specified categories

Description Usage Arguments Value Examples

View source: R/gpsWithin.R

Description

Any one-dimensional object whose values distinguish groups may be supplied.

Usage

1
gpsWithin(x, f)

Arguments

x

One-dimensional object whose values distinguish groups

f

One-dimensional object or list of objects, the combinations of whose values specify categories within which groups are to be defined.

Value

Integer vector whose values, within each specified category, run from 1 to the number of groups

Examples

1
2
repnum <- with(qra::codling1988, gpsWithin(cultRep, Cultivar))
table(codling1988$Cultivar,repnum)

qra documentation built on Oct. 29, 2021, 9:06 a.m.