diff --git a/R/init_dates_dataframe.R b/R/init_dates_dataframe.R index 065d0037..932b79a1 100644 --- a/R/init_dates_dataframe.R +++ b/R/init_dates_dataframe.R @@ -3,6 +3,8 @@ #' Creates a tibble with rows for each date from \code{'yrstart'} to \code{'yrend'} #' in \code{'yyyy-mm-dd'} format. Intervals of dates are specified by argument #'\code{'freq'}. +#' ddf <- init_dates_dataframe(2000, 2003, startmoy=1, startdoy=1, +#' freq="days", endmoy=12, enddom=31, noleap=FALSE) #' #' @param yrstart An integer defining the start year #' of dates covered by the dataframe. @@ -25,9 +27,6 @@ #' #' @return A tibble with dates. #' -#' @examples -#' ddf <- init_dates_dataframe( 2000, 2003, startmoy=1, startdoy=1, -#' freq="days", endmoy=12, enddom=31, noleap=FALSE ) init_dates_dataframe <- function( yrstart, diff --git a/man/init_dates_dataframe.Rd b/man/init_dates_dataframe.Rd index 837c81a7..881b9112 100644 --- a/man/init_dates_dataframe.Rd +++ b/man/init_dates_dataframe.Rd @@ -48,9 +48,7 @@ A tibble with dates. \description{ Creates a tibble with rows for each date from \code{'yrstart'} to \code{'yrend'} in \code{'yyyy-mm-dd'} format. Intervals of dates are specified by argument -\code{'freq'}. -} -\examples{ - ddf <- init_dates_dataframe( 2000, 2003, startmoy=1, startdoy=1, - freq="days", endmoy=12, enddom=31, noleap=FALSE ) +\code{'freq'}. + ddf <- init_dates_dataframe(2000, 2003, startmoy=1, startdoy=1, + freq="days", endmoy=12, enddom=31, noleap=FALSE) }