dot-xg_encode_categorical: Encode categorical xG feature

.xg_encode_categoricalR Documentation

Encode categorical xG feature

Description

.xg_encode_categorical() is an internal helper for calculate_expected_goals().

Usage

.xg_encode_categorical(values, var, spec, n)

Arguments

values

vector feature values

var

character feature name

spec

xG preprocessing specification

n

integer row count

Value

Internal helper output.


nhlscraper documentation built on June 29, 2026, 1:06 a.m.