util_convert_minsonice: Convert '"mm:ss"' character to numeric minutes

Description Usage Arguments Value Examples

View source: R/nhl_utils.R

Description

Convert "mm:ss" character to numeric minutes

Usage

1
util_convert_minsonice(chr, splitter = ":")

Arguments

chr

character(), vector in format "mins:secs".

splitter

character(1), that splits minutes and seconds in elements of chr.

Value

numeric(), vector of times in minutes. Same length as chr.

Examples

1
   nhlapi:::util_convert_minsonice(c("20:00", "1500:30"))

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