bh_label_samples: Add header information to samples

View source: R/old_code/bluehill_functions.2.R View source: R/old_code/bluehill_functions.1.R View source: R/bluehill_functions.R

bh_label_samplesR Documentation

Add header information to samples

Description

Copies the blank_row and Specimen Label parts from a data.table of specimen headers and adds them to a data.table of samples. Will give NA if either (but not both) headers are missing. It's probably better to do this explicitly in the main code, but using specimen_labels which returns .(blank, label) as that is more readable than .(V1, V2).

Usage

bh_label_samples(samples, headers)

Arguments

samples

A data.table of samples.

headers

A data.table of sample headers.

Value

samples with added columns for blank_row and label for each specimen.


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.