str_subset_keep_names | R Documentation |
str_subset that preserves names
str_subset_keep_names(vec, pattern)
vec |
named vector |
pattern |
regex as in str_subset |
myvec <- c("a", "b", "ab", "ba") %>% are_names_of(.,.) myvec %>% str_subset_keep_names("^a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.