Wraps base::seq() with a safeguard that returns an empty vector if sequence cannot be created.

safe_seq(from, to, ...)

Arguments

from

[numeric(1)]
First element of a sequence.

to

[numeric(1)]
Upper limit of a sequence.

...


Arguments passed to seq().

Value

A vector of numbers.