seq_range: Sequence along range

Description Usage Arguments Details Author(s) See Also Examples

View source: R/seq_range.R

Description

You can feed seq_range the result of 'range' i.e. a min and a max.

Usage

1
seq_range(rng, ...)

Arguments

rng

A vector with two elements specifying the "from" and "to" in seq

...

further arguments passed along to seq

Details

If the length of rng isn't two, seq_range will take use range(rng) to calculate the range of the sequence.

Author(s)

Gene Leynes

See Also

seq Underlying function

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
somedates <- as.POSIXct(c("2014-10-13", "2014-10-23", "2014-10-15"))
seq_range(range(somedates), by="day")

set.seed(1)
seq_range(range(rpois(5, 8)))
set.seed(1)
seq_range(rpois(5, 8))
set.seed(1)
seq_range(rpois(5, 8), by=.5)
set.seed(1)
seq_range(rpois(5, 8), length.out=4)

geneorama/geneorama documentation built on Oct. 17, 2020, 12:35 a.m.