checkSimValueInSer
checks all values of 'x' for similar values outside/within (relative) range of 'ppm' (ie ambiguous within given range).
Return logical vector : FALSE for each entry of 'x' if value inside of ppm range to neighbour
checkSimValueInSer(x, ppm = 5, sortX = TRUE)
numeric vector
(numeric) ppm-range for considering as similar
(logical) allows speeding up function when set to FALSE, for large data that are already sorted
logical vector : FALSE for each entry of 'x' if value inside of ppm range to neighbour
similar with more options withinRefRange
# NOT RUN {
va1 <- c(4:7,7,7,7,7,8:10)+(1:11)/28600; checkSimValueInSer(va1)
cbind(va=va1,simil=checkSimValueInSer(va1))
# }
Run the code above in your browser using DataLab