varnames | R Documentation |
This function searches within a given dataset for variable names that contain one or more specific substrings.
varnames(d, what, case_sensitive = FALSE)
d |
Dataset that contains the variable names of interest. |
what |
Character vector of substrings are assumed to be in the variable names. |
case_sensitive |
If FALSE, the default, R doesn't distinquish between upper and lower case. |
Returns a character vector with variable names of interest.
Dennis Freuer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.