covarInDataset: Checking whether a specific covariate is present

Description Usage Arguments Value

View source: R/summaryFcns.R

Description

This is a simple internal function designed to check whether a specific covariate is contained within a list of covariates.

Usage

1
covarInDataset(covarName, covarNames)

Arguments

covarName

A scalar string, containing the name of the covariate of interest.

covarNames

A vector of strings, defining a list of covariate names to check against.

Value

A logical scalar, indicating whether the covariate is contained within the list. Note that by definition, a NULL or empty string ("") will return TRUE.


sanoke/hetviz documentation built on March 4, 2020, 7:58 a.m.