named_starting | R Documentation |
Subset objects by name using an initial substring
named_starting(x, prefix)
x |
An object with names. |
prefix |
A character string |
x[startsWith(names(x), prefix)]
vec <- c(one = 1, two = 2, three = 3, four = 4)
vec |> named_starting("t")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.