util_convert_minsonice {nhlapi}R Documentation

Convert "mm:ss" character to numeric minutes

Description

Convert "mm:ss" character to numeric minutes

Usage

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

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

[Package nhlapi version 0.1.4 Index]