Learn R Programming

wrMisc (version 1.2.3)

checkSimValueInSer: 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

Run this code
# 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