fill_nulls: Convert null values to specified value

Description Usage Arguments

View source: R/helpers.R

Description

Since .bbrz files will sometimes have no value recorded for some things (examples seen include x position of ball, game turn, etc.), we get a NULL if we try to call them. Passing all calls for data from a replay file through here allows us to control the returned value if the data is unrecorded. For example, it appears that the Ball$IsHeld value is set to "1" when the ball is held, but is not reported at all if the ball is free.

Usage

1
fill_nulls(data, null_val = NA)

Arguments

data

value to be checked

null_val

value to return if data is NULL


nufflytics/nufflytics documentation built on Oct. 10, 2020, 5:27 p.m.