Learn R Programming

platetools (version 0.1.7)

fill_plate: Fill in missing wells

Description

Fills in missing wells with rows of NA values. Useful for any functions that require a complete plate such as `b_score`.

Usage

fill_plate(df, well, plate = 96)

Value

dataframe

Arguments

df

dataframe

well

Column containing well identifiers i.e "A01"

plate

Number of wells in complete plate (96, 384 or 1536)

Examples

Run this code
vals <- rnorm(96) ; wells <- num_to_well(1:96)
df <- data.frame(wells, vals)
df_missing <- df[-c(1:10), ]
fill_plate(df_missing, "wells")

Run the code above in your browser using DataLab