Indexes along rows first, so A12 is index 12 and B01 is index 13 for a 96 well plate.
well_to_index(x, plate = 96, colwise = FALSE)
string well ID
size of the plate. One of c(6, 12, 24, 96, 384)
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.
numeric well index.
# indexing along the row first
well_to_index(c("A10", "c3", "h12"))
#> [1] 10 27 96
well_to_index("H08")
#> [1] 92
well_to_index("h8")
#> [1] 92
well_to_index("C20")
#> [1] 44
# indexing instead down the column first
well_to_index(c("A10", "c3", "h12"), colwise = TRUE)
#> [1] 73 19 96
well_to_index("H08", colwise = TRUE)
#> [1] 64
well_to_index("h8", colwise = TRUE)
#> [1] 64
well_to_index("C20", colwise = TRUE)
#> [1] 155