View source: R/combinerCheck.R
isCombinedTable | R Documentation |
combinedTable
ValidityChecks whether input object is a valid metabData.Returns an
integer code if invalid. Function is used alongside combinerCheck
.
isCombinedTable(object)
object |
Any R object. |
a proper combinedTable
must have these characteristics to
be deemed valid for metabCombiner
operations:
1) It must be a data.frame with at least 16 columns and at least 1 row
2) The first 16 columns must be named "rowID", "idx","idy","mzx","mzy","rtx", "rty", "rtProj","Qx","Qy","group","score","rankX","rankY","adductx", & "adducty" in this exact order
3) The first 16 columns must be of class: "numeric" "character","character", "numeric","numeric","numeric", "numeric", "numeric","numeric","numeric", "integer", "numeric", "integer", "integer","character", "character"
4) The group column must have no missing or negative values
Failing any one of these criteria causes an error
0 if object is a valid Combiner Table; an integer code otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.