R/together.R

Defines functions together

Documented in together

#' Force in/out together
#'
#' Identify items that cannot/must be present together in a
#' combinations. Made to be used in the call to [turf][onezero::turf].
#'
#' @details This is simply a wrapper for [quos][rlang::quos].
#'
#' @param ... Unquoted names or tidyselect expressions.
#'
#' @importFrom rlang quos
#'
#' @examples
#' together(
#'     c(var1, var2),
#'     dplyr::ends_with("a"),
#'     c(5, 9)
#' )
#'
#' @return A list of quosures.
#'
#' @export
together <- function(...) {
    quos(...)
}
ttrodrigz/onezero documentation built on May 9, 2023, 2:59 p.m.