checkDfCols: Function that checks whether a set of columns given as a...

Description Usage Arguments Value

Description

Function that checks whether a set of columns given as a vector of strings is in a data frame and, if not, gives feedback on which are missing before stopping execution of the program.

Usage

1
2
checkDfCols(requiredCols, dfName,
  specifiedIn = "which was specified in preferences")

Arguments

requiredCols

A character vector containg the names of columns the presence of which in a data frame is to be verfied

dfName

Name of the data frame in which the columns in requiredCols are to be found

specifiedIn

An optional argument (default) that allows the output to detail where the varaible names can be changed by the user

Value

TRUE, unless it stopped


garyfeng/pdata documentation built on May 16, 2019, 5:42 p.m.