Learn R Programming

experDesign (version 0.4.0)

use_index: 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

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

Run the code above in your browser using DataLab