Skip to contents

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
#> Error in varIsValid(variableName = "Goals", type = "skaters"): could not find function "varIsValid"
varIsValid(varaibleName="Assists", type="goalies") # FALSE
#> Error in varIsValid(varaibleName = "Assists", type = "goalies"): could not find function "varIsValid"