Skip to content

Commit c2b13a6

Browse files
committed
updated _pkgdown.yml
1 parent d418206 commit c2b13a6

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

R/utils-misc.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,11 @@ create_non_standard_month <- function(.data,pattern){
580580
#'
581581
#' @param .data data
582582
#' @param pattern 554,445 or 545
583+
#' @param x is ti object
583584
#'
584585
#' @returns DBI object
585586
#'
586-
augment_non_standard_calendar <- function(.data,pattern){
587+
augment_non_standard_calendar <- function(.data,x,pattern){
587588

588589
#test inputs
589590
# pattern <- "544"
@@ -593,7 +594,7 @@ augment_non_standard_calendar <- function(.data,pattern){
593594
weeks_in_quarter=13
594595
quarters_in_year=4
595596
# start_year <- closest_sunday_feb1(min_year)
596-
597+
min_date <- x@datum@min_date
597598

598599
#
599600
# new_cal <- seq_date_sql(start_date = start_year,end_date=x@datum@max_date,time_unit = "day",con =con ) |>
@@ -625,7 +626,10 @@ augment_non_standard_calendar <- function(.data,pattern){
625626
day=lubridate::day(date)
626627
) |>
627628
dplyr::select(
628-
date,day,week,month,quarter,year
629+
-c(week_index,year_index)
630+
) |>
631+
dplyr::filter(
632+
date>min_date
629633
)
630634

631635
return(out)

_pkgdown.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,14 @@
5959
- yoytd # YTD vs prior YTD
6060
- ytdopy # YTD over previous full year
6161

62+
articles:
63+
- title: Segmentation
64+
navbar: Segmentation
65+
contents:
66+
- articles/abc
67+
- articles/cohort
68+
69+
- title: Time Intillgience
70+
navbar: Time Intelligence
71+
contents:
72+
- articles/calendar_types

man/augment_non_standard_calendar.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)