checkColNames: Parse alpha value

Description Usage Arguments Details Value Author(s) Examples

Description

Parses an input alpha value to be used in numeric summary calculations

Usage

1
checkColNames(dNames, cols)

Arguments

dNames

Character vector of column names from a data frame

cols

Character vector of column names that should be found in the data frame

Details

Checks that all column names specified in "cols" are found in the data frame names (given by "dNames") and produces a neat error message if not

Value

A TRUE value (if all of "cols" are found in "dNames") or an exception if not

Author(s)

Mike K Smith mstoolkit@googlemail.com

Examples

1
2
3
	checkColNames(LETTERS, "D")						# Returns TRUE
	checkColNames(LETTERS, LETTERS[1:5])			# Returns TRUE
	try(checkColNames(LETTERS, c("A", "Hello")))	# Produces an error

MSToolkit documentation built on May 2, 2019, 6:30 p.m.