secs: Get number of seconds given a string

Description Usage Arguments Details Value See Also

View source: R/helper.R

Description

This is a helper function to get the number of seconds.

Usage

1
secs(x)

Arguments

x

character, describes a time duration, i.e. "3m15s"

Details

This could be useful for composing query parameters for YouTube embeds.

Value

numeric, number of seconds

See Also

embed_youtube(), hms()


vembedr documentation built on Oct. 23, 2020, 8:26 p.m.