well_to_num: Converts well labels to numbers

Description Usage Arguments Value Examples

View source: R/well_to_num.R

Description

Converts alpha-numeric well labels to numbers corresponding to positions within a microtitre plate. Either 96 or 384 well plate, in column-wise order or in a column snaking pattern.

Usage

1
well_to_num(wells, style = "normal", plate = 96)

Arguments

wells

Vector of well identifiers e.g "A01"

style

Either normal, starting at the left hand column at each row or in a snaking fashion. ('normal' or 'snake')

plate

Number of wells in the complete plate (96 or 384)

Value

Vector of numbers

Examples

1
2
3
4
5
6
7
8
well_to_num("A01")

well_to_num("P12", plate = 384)

well_to_num("P12", plate = 384, style = "snake")

wells <- c("A01", "A02", "A03")
well_to_num(wells)

Example output

[1] 1
[1] 372
[1] 373
[1] 1 2 3

platetools documentation built on June 3, 2021, 5:06 p.m.