-
Notifications
You must be signed in to change notification settings - Fork 4
/
imports.R
102 lines (84 loc) · 2.26 KB
/
imports.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#' @import Rcpp
#'
#' @importFrom methods as
#'
#' @importFrom stats cov
#' @importFrom stats median
#' @importFrom stats quantile
#' @importFrom stats setNames
#'
#' @importFrom utils data
#' @importFrom utils file_test
#'
#' @importFrom rlang are_na
#'
#' @importFrom foreach `%dopar%`
#' @importFrom foreach `%do%`
#'
NULL
# dplyr reexports --------------------------------------------------------------
#' @importFrom dplyr %>%
#' @export
dplyr::`%>%`
# rlang reexports --------------------------------------------------------------
#' @importFrom rlang `:=`
#' @export
rlang::`:=`
#' @importFrom rlang `.data`
#' @export
rlang::`.data`
# tidyselect reexports ---------------------------------------------------------
#' Select variables with a function
#'
#' This is a copy of \code{\link[tidyselect]{where}}, a selection helper that
#' selects the variables for which a predicate function returns TRUE. See
#' \code{\link[tidyselect]{language}} for more details about tidyselection.
#'
#' This help file was replicated verbatim from \code{\link[tidyselect]{tidyselect-package}}.
#'
#' @param fn A function that returns TRUE or FALSE (technically, a predicate function).
#' Can also be a purrr-like formula.
#'
#' @importFrom tidyselect vars_select_helpers
#'
#' @export
#'
#' @return A predicate that can be used to select columns from a data.frame.
#'
#' @references Lionel Henry and Hadley Wickham (2021). tidyselect:
#' Select from a Set of Strings. R package version 1.1.1.
#' https://CRAN.R-project.org/package=tidyselect
#'
#' @examples
#' NULL
#'
where <- tidyselect::vars_select_helpers$where
# Alias required for help links in downstream packages
#' @aliases select_helpers
#' @importFrom tidyselect contains
#' @export
tidyselect::contains
#' @importFrom tidyselect ends_with
#' @export
tidyselect::ends_with
#' @importFrom tidyselect everything
#' @export
tidyselect::everything
#' @importFrom tidyselect matches
#' @export
tidyselect::matches
#' @importFrom tidyselect num_range
#' @export
tidyselect::num_range
#' @importFrom tidyselect starts_with
#' @export
tidyselect::starts_with
#' @importFrom tidyselect last_col
#' @export
tidyselect::last_col
#' @importFrom tidyselect any_of
#' @export
tidyselect::any_of
#' @importFrom tidyselect all_of
#' @export
tidyselect::all_of