Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions R/expand.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#' # Finding combinations ------------------------------------------------------
#' fruits <- tibble(
#' type = c("apple", "orange", "apple", "orange", "orange", "orange"),
#' year = c(2010, 2010, 2012, 2010, 2011, 2012),
#' year = c(2010, 2010, 2012, 2014, 2011, 2012),
#' size = factor(
#' c("XS", "S", "M", "S", "S", "M"),
#' levels = c("XS", "S", "M", "L")
Expand All @@ -70,7 +70,8 @@
#' # Other uses ----------------------------------------------------------------
#' # Use with `full_seq()` to fill in values of continuous variables
#' fruits %>% expand(type, size, full_seq(year, 1))
#' fruits %>% expand(type, size, 2010:2013)
#' # Or write range explicitly
#' fruits %>% expand(type, size, 2010:2014)
#'
#' # Use `anti_join()` to determine which observations are missing
#' all <- fruits %>% expand(type, size, year)
Expand Down
5 changes: 3 additions & 2 deletions man/expand.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.