Functions supporting the common needs of packages 'ChemoSpec' and 'ChemoSpec2D'.
chkSpectra.Spectra2Dwould fail if there was only one sample when checking to see if NAs were present in the same positions across all data sets. Fixed.
rowDist. The previous version was giving slightly wrong answers.
updateGroupsnow reports the old groups if
new.grps = NULL, as intended and claimed in the documentation.
plotScreenow knows what to do with class
.chkArgssince errors were introduced via the most recent "fix"! Updated unit tests for the function, but even more work should be done there. Using
HandyStuff::examplePageto look for errors and warnings. None found.
.chkArgs(mode = 13)that was giving an error in
.groupNcolor(the problem seems to have been present from the very first version of
ChemoSpec). Reported by Reinhard Kerschner (many thanks!).
check4Gapsgap checking more robust, with better examples and documentation. If no gap found, a data frame with one row is returned. In turn, this required changes over in
binSpectrawhich are in
ChemoSpec. In addition, while
check4Gapsstill accepts an argument
tolno other functions are using it, and a much more suitable default value is computed in
check4Gapsrather than being computed in another function and passed here.
removeSamplego full S3 dispatch for consistency among the three packages.
ChemoSpecand converted to S3 dispatch.
chkArgsand associated unit tests added, but it is not yet used in any of the other functions.
Seems to work correctly on behalf of
ChemoSpec2D devel versions.
ChemoSpec2Dfor CRAN, temporarily.
.groupNcoloradded with argument mode.
addLegendgets an example.