Skip to content

Commit 9e7a0bc

Browse files
committed
Change one year for useful full_seq example call
1 parent 9783be3 commit 9e7a0bc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

R/expand.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#' # Finding combinations ------------------------------------------------------
4848
#' fruits <- tibble(
4949
#' type = c("apple", "orange", "apple", "orange", "orange", "orange"),
50-
#' year = c(2010, 2010, 2012, 2010, 2011, 2012),
50+
#' year = c(2010, 2010, 2012, 2014, 2011, 2012),
5151
#' size = factor(
5252
#' c("XS", "S", "M", "S", "S", "M"),
5353
#' levels = c("XS", "S", "M", "L")
@@ -70,7 +70,8 @@
7070
#' # Other uses ----------------------------------------------------------------
7171
#' # Use with `full_seq()` to fill in values of continuous variables
7272
#' fruits %>% expand(type, size, full_seq(year, 1))
73-
#' fruits %>% expand(type, size, 2010:2013)
73+
#' # Or write range explicitly
74+
#' fruits %>% expand(type, size, 2010:2014)
7475
#'
7576
#' # Use `anti_join()` to determine which observations are missing
7677
#' all <- fruits %>% expand(type, size, year)

man/expand.Rd

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

0 commit comments

Comments
 (0)