well_from_index: Convert Numeric Index to Well ID.

View source: R/well.R

well_from_indexR Documentation

Convert Numeric Index to Well ID.

Description

Convert Numeric Index to Well ID.

Usage

well_from_index(x, plate = 96, num_width = 2, colwise = FALSE)

Arguments

x

numeric index to convert to a well ID

plate

number of wells in the plate. One of c(6, 12, 24, 96, 384)

num_width

number of zeros to pad the column number with to the left.

colwise

if TRUE, index instead down the columns, so H01 is index 8, A12 is index 89 and B01 is index 2 for a 96 well plate.

Value

a column ID as a vector of strings.

Examples

# indexing first along the rows
well_from_index(1:20)

# indexing first down the columns
well_from_index(1:20, colwise = TRUE)

rforbiochemists/wellr documentation built on March 28, 2024, 4:26 a.m.