varIsValid: Check Variable Name Validity

View source: R/utils.R

varIsValidR Documentation

Check Variable Name Validity

Description

Checks the validity of a given variable name for a certain type of ECAC hockey data

Usage

varIsValid(variableName, type)

Arguments

variableName

name of Variable to check

type

type of variable to check ('team', 'skaters', 'goalies', or' game')

Value

TRUE if variableName is valid, FALSE otherwise

Examples

varIsValid(variableName="Goals", type="skaters") # TRUE
varIsValid(varaibleName="Assists", type="goalies") # FALSE

CharlesReinhardt/ecacr documentation built on May 14, 2022, 2:24 a.m.