powered by
Splits a unit string (e.g., "2 weeks") into the amount (2) and unit ("weeks")
split_unit(unit_string)
a list with two elements, "num" (the amount) and "unit", , for use with lubridate::period
the string to split
Sebastian Funk