use_index: Convert a factor to index

View source: R/indexing.R

use_indexR Documentation

Convert a factor to index

Description

Convert a given factor to an accepted index

Usage

use_index(x)

Arguments

x

A character or a factor to be used as index

See Also

You can use evaluate_index() to evaluate how good an index is. For the inverse look at batch_names().

Examples

plates <- c("P1", "P2", "P1", "P2", "P2", "P3", "P1", "P3", "P1", "P1")
use_index(plates)

llrs/experDesign documentation built on Dec. 24, 2024, 8:22 a.m.