batch_container_from_table {designit} | R Documentation |
Creates a BatchContainer from a table (data.frame/tibble::tibble) containing sample and location information.
Description
Creates a BatchContainer from a table (data.frame/tibble::tibble) containing sample and location information.
Usage
batch_container_from_table(tab, location_cols)
Arguments
tab |
A table with location and sample information.
Table rows with all |
location_cols |
Names of columns containing information about locations. |
Value
A BatchContainer assigned samples.
Examples
tab <- data.frame(
row = rep(1:3, each = 3),
column = rep(1:3, 3),
sample_id = c(1, 2, 3, NA, 5, 6, 7, NA, 9)
)
bc <- batch_container_from_table(tab, location_cols = c("row", "column"))
[Package designit version 0.5.0 Index]