check_names | R Documentation |
Function used to check if a string, or a character vector contains variable names of a given data frame.
check_names(df, var_names, boolean = TRUE)
df |
a data frame. |
var_names |
Character vector to be compared with the data frame names. |
boolean |
Boolean object used to define if the output is going to be a boolean object |
Function used to check if a string, or a character vector contains variable names of a given data frame. This functions is mainly used to error-proof other functions of this package,
Sollano Rabelo Braga sollanorb@gmail.com
library(forestmangr)
check_names(iris, "Species")
check_names(iris, "Species", boolean = FALSE )
check_names(iris, c("Especies", "Setal.Width") )
check_names(iris, c("Especies", "Setal.Width"), boolean = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.