which_level: Determine the level of a value in a vector of type 'factor'

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Determine the level of a value in a vector of type factor

Usage

1

Arguments

x

vectors of type factor

Value

a vector holding the corresponding level of the input factors

Examples

1
2
first <- factor(c("J", "O", "S", "H"), LETTERS)
which_level(first)

jhrcook/ggasym documentation built on July 12, 2021, 3:27 a.m.