This is a wrapper of base::seq.Date, only with defaults that can be set in the options.
Usage
pg_dates(
start_date = pgoptions$get_start_date(),
end_date = pgoptions$get_end_date(),
temporal_resolution = pgoptions$get_temporal_resolution()
)
Arguments
- from
starting date
- to
end date
- by
increment of sequence. See details in base::seq.Date.
Examples
pg_dates()
#> [1] "1850-12-31" "1851-12-31" "1852-12-31" "1853-12-31" "1854-12-31"
#> [6] "1855-12-31" "1856-12-31" "1857-12-31" "1858-12-31" "1859-12-31"
#> [11] "1860-12-31" "1861-12-31" "1862-12-31" "1863-12-31" "1864-12-31"
#> [16] "1865-12-31" "1866-12-31" "1867-12-31" "1868-12-31" "1869-12-31"
#> [21] "1870-12-31" "1871-12-31" "1872-12-31" "1873-12-31" "1874-12-31"
#> [26] "1875-12-31" "1876-12-31" "1877-12-31" "1878-12-31" "1879-12-31"
#> [31] "1880-12-31" "1881-12-31" "1882-12-31" "1883-12-31" "1884-12-31"
#> [36] "1885-12-31" "1886-12-31" "1887-12-31" "1888-12-31" "1889-12-31"
#> [41] "1890-12-31" "1891-12-31" "1892-12-31" "1893-12-31" "1894-12-31"
#> [46] "1895-12-31" "1896-12-31" "1897-12-31" "1898-12-31" "1899-12-31"
#> [51] "1900-12-31" "1901-12-31" "1902-12-31" "1903-12-31" "1904-12-31"
#> [56] "1905-12-31" "1906-12-31" "1907-12-31" "1908-12-31" "1909-12-31"
#> [61] "1910-12-31" "1911-12-31" "1912-12-31" "1913-12-31" "1914-12-31"
#> [66] "1915-12-31" "1916-12-31" "1917-12-31" "1918-12-31" "1919-12-31"
#> [71] "1920-12-31" "1921-12-31" "1922-12-31" "1923-12-31" "1924-12-31"
#> [76] "1925-12-31" "1926-12-31" "1927-12-31" "1928-12-31" "1929-12-31"
#> [81] "1930-12-31" "1931-12-31" "1932-12-31" "1933-12-31" "1934-12-31"
#> [86] "1935-12-31" "1936-12-31" "1937-12-31" "1938-12-31" "1939-12-31"
#> [91] "1940-12-31" "1941-12-31" "1942-12-31" "1943-12-31" "1944-12-31"
#> [96] "1945-12-31" "1946-12-31" "1947-12-31" "1948-12-31" "1949-12-31"
#> [101] "1950-12-31" "1951-12-31" "1952-12-31" "1953-12-31" "1954-12-31"
#> [106] "1955-12-31" "1956-12-31" "1957-12-31" "1958-12-31" "1959-12-31"
#> [111] "1960-12-31" "1961-12-31" "1962-12-31" "1963-12-31" "1964-12-31"
#> [116] "1965-12-31" "1966-12-31" "1967-12-31" "1968-12-31" "1969-12-31"
#> [121] "1970-12-31" "1971-12-31" "1972-12-31" "1973-12-31" "1974-12-31"
#> [126] "1975-12-31" "1976-12-31" "1977-12-31" "1978-12-31" "1979-12-31"
#> [131] "1980-12-31" "1981-12-31" "1982-12-31" "1983-12-31" "1984-12-31"
#> [136] "1985-12-31" "1986-12-31" "1987-12-31" "1988-12-31" "1989-12-31"
#> [141] "1990-12-31" "1991-12-31" "1992-12-31" "1993-12-31" "1994-12-31"
#> [146] "1995-12-31" "1996-12-31" "1997-12-31" "1998-12-31" "1999-12-31"
#> [151] "2000-12-31" "2001-12-31" "2002-12-31" "2003-12-31" "2004-12-31"
#> [156] "2005-12-31" "2006-12-31" "2007-12-31" "2008-12-31" "2009-12-31"
#> [161] "2010-12-31" "2011-12-31" "2012-12-31" "2013-12-31" "2014-12-31"
#> [166] "2015-12-31" "2016-12-31" "2017-12-31" "2018-12-31" "2019-12-31"
#> [171] "2020-12-31" "2021-12-31" "2022-12-31" "2023-12-31" "2024-12-31"