well_reorder_df: Reorder a Plate-Based DataFrame

View source: R/plate.R

well_reorder_dfR Documentation

Reorder a Plate-Based DataFrame

Description

Reorder a Plate-Based DataFrame

Usage

well_reorder_df(data, well_col = "well", row_col = NULL, col_col = NULL)

Arguments

data

Data frame to reorder, than contains a row column and a col column.

well_col

Column containing the well IDs.

row_col

Column containing the row letters or numbers.

col_col

Column containing the column numbers.

Value

A data.frame that has been reordered according to the row & col columns.

Examples

df <- well_plate(nrow = 8, ncol = 12)
df <- df[sample(1:96, 96), ]
head(df)

df <- well_reorder_df(df)
head(df)


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