whichcol | R Documentation |
Retrieves column names and labels that matches a general expression via grepl.
whichcol(pattern, tibble, label = TRUE, ignore.case = TRUE, ...)
pattern |
character string containing a regular expression
(or character string for |
tibble |
a tibble object. |
label |
a logical value indicating if pattern should be searched in
variable label, instead of variable name. Default is |
ignore.case |
if |
... |
Arguments passed on to
|
A data frame.
# tibble generated by haven
input <- system.file("extdata/reds", package = "ILSAmerge")
x <- do.call(rbind,justload(inputdir = input,population = "BCGV1"))
x
whichcol("weight",x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.