Learn R Programming

platetools (version 0.1.7)

plate_matrix: plate layout matrix from well IDs

Description

Given a dataframe of alpha-numeric well IDs e.g ("A01"), and values, this function will produce a matrix in the form of a plate layout.

Usage

plate_matrix(data, well, plate = 96)

Value

matrix

Arguments

data

vector of data to be placed in matrix

well

vector of alphanumeric well IDs. e.g ("A01")

plate

number of wells in plate (6, 12, 24, 48, 96 or 384, 1536)

Examples

Run this code
a <- 1:96
wells <- num_to_well(1:96)
plate_matrix(data = a, well = wells)

x <- rnorm(384)
wells <- num_to_well(1:384, plate = 384)
plate_matrix(data = x, well = wells, plate = 384)

Run the code above in your browser using DataLab