identify_ranges: Algorithm to pick up a vector and find all ranges in it

Description Usage Arguments Value Examples

Description

Algorithm to pick up a vector and find all ranges in it

Usage

1
identify_ranges(dat, key.fun = range_write)

Arguments

dat

vector of numbers

key.fun

callback function to write ranges

Value

vector of strings defining all ranges in data

Examples

1
2
3
4
identify_ranges(c(1:3, 5, 7:8, 10:12, 14:15))
identify_ranges(c(1:3, 5, 7:8, 10:12, 14))
identify_ranges(c(1, 5, 7:8, 10:12, 14))
identify_ranges(c(1, 5, 7:8, 10:12, 14:19))

averissimo/covid19.de.data documentation built on Nov. 18, 2020, 12:42 a.m.