GetReplicate {QuICSeedR}R Documentation

Generate Replicate Numbers for Plate Data

Description

This function takes a plate layout and generates a corresponding matrix of replicate numbers for each sample.

Usage

GetReplicate(plate)

Arguments

plate

A matrix or data frame representing the plate layout, where each cell contains a sample identifier or NA for empty wells.

Value

A data frame with the same dimensions as the input plate, where each cell contains the replicate number for the corresponding sample in the input plate.

Note

Examples

plate <- matrix(
  c("A", "B", "C",
    "A", "B", NA,
    "A", "C", "D"),
  nrow = 3, byrow = TRUE
)

replicates <- GetReplicate(plate)
print(replicates)



[Package QuICSeedR version 0.1.2 Index]