load_metadata: Load metadata

View source: R/load_metadata.R

load_metadataR Documentation

Load metadata

Description

Loads metadata about the samples

Usage

load_metadata(metadata, date = NULL, sample, group = NULL, type, amount = NULL)

Arguments

metadata

data frame of sample metadata

date

the text date of sampling

sample

the string that specifies the sample ID

group

a vector of columns that specifies species or treatment groups

type

the column that specifies what type of sample it is (e.g. floral, ambient control, etc.). Levels should be c("floral", "ambient", "leaf")

amount

the string that specifies the amount used for standardization (e.g. flower number or mass)

Value

metadata, a data frame with the standard column names and types

Examples

data(GCMSfloral)
metadata <- load_metadata(GCMS_metadata, "SampleDate", "Filename", c("Cross", "Time"), "Type", "Flrs")

jmpowers/bouquet documentation built on Feb. 12, 2023, 12:11 a.m.