is_duration_string: is_duration_string

Description Usage Arguments

View source: R/wranglers.R

Description

Takes a character string and attempts to determine if it could be a duration type string. Will return true if string starts with a number followed by an 's', and is also possibly followed by a space and then an open parenthesis and a ~ and a number and then anything. So it will falsely return "31.2s (~40 cubits)" as TRUE

Usage

1

Arguments

x

the string to be examined


benwhicks/lakit documentation built on Sept. 28, 2019, 4:27 p.m.