Nothing
#' Standard name check
#'
#' Checks if variable names are the standard defined into DIETCOST R standard table.
#' @param df Dataframe.
#' @param ... Any number of strings.
#' @return No R object return, performs only a check.
#' @examples
#'standard_name_check(DIETCOST::foods, 'food_id', 'food_name')
#' @export
standard_name_check <- function(df,...){
variables <- list(...)
for(variable in variables){
if(!(variable %in% colnames(df))){
stop("Column names don't match standard. Check your data!")
}
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.