vec2strI | R Documentation |
Convert a line of text representing a vector to a string (for assignment)
vec2strI(vec)
vec |
a line of text to convert |
inplace replacement of the line to a string
## Not run:
islands_startingWithA <- grep("^A", names(islands), value = TRUE) |> vec2strI(vec = _)
#---
# need a separator or to use alt + enter because ctrl + enter ends on the
# next line and so the range start there, so if the function is there too
# it will act there instead
grep("^A", names(islands), value = TRUE) |> vec2strI(vec = _)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.