compCV {ncGTW} | R Documentation |
This function calculates the coefficient of variation of each feature.
compCV(XCMSresFilled, na.rm = FALSE)
XCMSresFilled |
A |
na.rm |
Omit the samples in which the feature is not detected, and the default is FALSE. |
This function calculates the coefficient of variation of each feature across all the samples. If a sample is detected with more than one peaks in the feature, the function will pick the one with the highest intensity value.
A vector of the same length as the row number of the group
slot in XCMSresFilled
, in which each element is the CV.
# obtain data data('xcmsExamples') xcmsLargeWin <- xcmsExamples$xcmsLargeWin cv <- compCV(xcmsLargeWin)