well_mat_to_df: Convert a Plate Matrix to a DataFrame

View source: R/plate.R

well_mat_to_dfR Documentation

Convert a Plate Matrix to a DataFrame

Description

Takes a matrix that is formatted as a plate, and converts it to a long-format 'tidy' data frame with a column for the well ID, the row, the column and the values that were in the matrix.

Usage

well_mat_to_df(matrix, value_col = "value")

Arguments

matrix

A matrix object to be converted.

value_col

The name of the value column in the final DataFrame.

Value

a tibble

Examples

mat <- matrix(rnorm(96), ncol = 12)
well_mat_to_df(mat, "random_values")

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