.compareByPPM {wrMisc} | R Documentation |
Compare by PPM
Description
This function allows to compare by ppm
Usage
.compareByPPM(dat, limit, distVal = FALSE)
Arguments
dat |
list of 2 numerical vectors |
limit |
(numeric, length=1) threshold value for retaining values, used with distace-type specified in argument 'compTy' |
distVal |
(logical) to toggle outpout as matrix of numeric (distance values above 'limit', others NA) or matrix of logical |
Value
This function returns a list with close matches of 'x' to given 'y', the numeric value dependes on 'sortMatch' (if FASLE then always value of 'y' otherwise of longest of x&y)
See Also
findCloseMatch
, checkSimValueInSer
, and also .compareByDiff
, for convient output countCloseToLimits
Examples
cc <- list(aa=11:14, bb=c(13.1,11.5,14.3,20:21))
.compareByPPM(cc, 1)
[Package wrMisc version 1.15.1 Index]