checkSimValueInSer: Check for similar values in series

View source: R/checkSimValueInSer.R

checkSimValueInSerR Documentation

Check for similar values in series

Description

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

Usage

checkSimValueInSer(x, ppm = 5, sortX = TRUE)

Arguments

x

numeric vector

ppm

(numeric) ppm-range for considering as similar

sortX

(logical) allows speeding up function when set to FALSE, for large data that are already sorted

Value

logical vector : FALSE for each entry of 'x' if value inside of ppm range to neighbour

See Also

similar with more options withinRefRange

Examples

va1 <- c(4:7,7,7,7,7,8:10)+(1:11)/28600; checkSimValueInSer(va1)
cbind(va=va1,simil=checkSimValueInSer(va1))

wrMisc documentation built on Jan. 7, 2023, 1:27 a.m.