validChromData: Check core chromatogram variables for correct data types

View source: R/ChromBackend-functions.R

validChromDataR Documentation

Check core chromatogram variables for correct data types

Description

validChromData() checks that columns, representing core chromatogram variables are of the correct data type.

Usage

validChromData(x = data.frame(), error = TRUE)

Arguments

x

data.frame representing metadata of a Chromatograms

error

logical(1) whether an error should be thrown (the default) if one or more columns don't have the correct data type.

Value

If core variables have all the correct data type: an empty character. If one or more core variables (columns) have the wrong data type the function either throws an error (with error = TRUE) or returns a character specifying which variables/columns don't have the correct type (for error = FALSE).


rformassspectrometry/Chromatograms documentation built on Sept. 5, 2024, 9:23 a.m.