makeXrayDf: Make x-ray data frame

View source: R/manageXray.R

makeXrayDfR Documentation

Make x-ray data frame

Description

This function takes in a harvest data frame (e.g., hh.2016) and assigns a sheet number and subbatch to each head. Subbatches are smaller subunits of large batches (experiments) for ease of processing.

Usage

makeXrayDf(hh, batchSize = 200, sheetSize = 20)

Arguments

hh

harvest dataframe

batchSize

the number of heads to fit in each subbatch. Default is 200.

sheetSize

the number of heads to fit on each x-ray grid sheet

Details

Subbatches are mainly useful for breaking large batches into smaller, more manageable chunks. If the number of heads is larger than the size specified for subbatches (i.e., the argument 'batchSize'), then the subbatch field will take the format "experimentName_subbatchNumber', where the subbatchNumber is the first No (numeric part of letno) in that batch.

Value

a data frame with five columns: letno, batch (i.e., experiment), No (the numeric part of a letno), subbatch, sheetNo

Examples

xr16 = makeXrayDf(hh.2016, batchSize = 100)
head(xr16)
tail(xr16)
table(xr16$subbatch)


stuartWagenius/echinaceaLab documentation built on April 13, 2025, 5:22 a.m.