CheckForMissingColumns: Checks whether specified column names exist in a data frame.

Description Usage Arguments Value Note

View source: R/utils_assert.R

Description

Checks whether specified column names exist in a data frame.

Usage

1
CheckForMissingColumns(x, dataframe, what = "specified")

Arguments

x

(character) names of the columns.

dataframe

(data frame) data frame.

what

(string) string to use in the error message.

Value

If all tests pass, returns TRUE invisibly. Otherwise, an 'assertError' is thrown.

Note

Convenient for checking function arguments. Quotes the name of the variable 'x'.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.