Description Usage Arguments Details Value
The function get_time_points()
extracts the numeric information from
a vector of character strings, if available.
1 | get_time_points(svec)
|
svec |
A vector of character strings. |
The function expects a vector of character strings that contain
numeric information. If the strings contain extractable numeric information
a named numeric vector is returned, where the names are derived from the
strings provided by svec
. For example, from the vector
c("t_0", "t_5", "t_10")
the named numeric vector (0, 5, 10)
is returned, where the names correspond to the original string. If a string
does not contain any numeric information NA
is returned.
A vector of the same length as svec
with the extracted
numbers as numeric values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.