R/get_stopfuncs.R

Defines functions get_stopfuncs

Documented in get_stopfuncs

#' Get a tidy data frame of a "stopword" lexicon for R functions
#'
#' Get a data frame listing one function per row.
#' @return A `tbl_df` with one column:
#'   * `func`: the function identified as a "stopword"
#'
#' @export
#'
#' @examples
#' get_stopfuncs()
get_stopfuncs <- function() {
  tibble::tibble(func = c(
    "%>%",
    "+",
    "-",
    "=",
    ":=",
    "|",
    "*",
    "<-",
    "/",
    "%%",
    "%/%",
    "^",
    "~",
    "::",
    "$",
    "==",
    "[",
    "!=",
    "c",
    "&",
    ":",
    "(",
    ")",
    "{",
    "}",
    "[[",
    "!",
    ">",
    "<",
    ">=",
    "<="
    )
  )
}

Try the tidycode package in your browser

Any scripts or data that you put into this service are public.

tidycode documentation built on Dec. 11, 2019, 1:08 a.m.