Description Usage Arguments Value Examples
View source: R/gregorianyearday.R
This is a yearday method for the seq()
generic.
Sequences can only be generated for "year"
precision yearday vectors.
When calling seq()
, exactly two of the following must be specified:
to
by
Either length.out
or along.with
1 2 
from 
A

to 
A

by 
The unit to increment the sequence by. If If If If 
length.out 
The length of the resulting sequence. If specified, 
along.with 
A vector who's length determines the length of the resulting sequence. Equivalent to If specified, 
... 
These dots are for future extensions and must be empty. 
A sequence with the type of from
.
1 2 3 4 5 6 7 8 9 10  # Yearly sequence
x < seq(year_day(2020), year_day(2040), by = 2)
x
# Which we can then set the day of to get a sequence of endofyear values
set_day(x, "last")
# Daily sequences are not allowed. Use a naivetime for this instead.
try(seq(year_day(2019, 1), by = 2, length.out = 2))
as_year_day(seq(as_naive_time(year_day(2019, 1)), by = 2, length.out = 2))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.