util_process_minsonice: Convert time columns from '"mm:ss"' to numeric minutes

Description Usage Arguments Value

View source: R/nhl_utils.R

Description

Convert time columns from "mm:ss" to numeric minutes

Usage

1
util_process_minsonice(df, patt = "timeOn|TimeOn")

Arguments

df

data.frame, data to examine.

patt

character(1), pattern to match column names that contain time information in "mm:ss" format.

Value

data.frame, with time columns converted from "mm:ss" characters to numeric minutes.


nhlapi documentation built on Feb. 20, 2021, 9:06 a.m.