line_to_vector | R Documentation |
This takes a line of items separated by spaces, tabs or newlines and returns a c() vector command - with the items quoted or not. By default, the line is read from the clipboard and a character vector returned
line_to_vector(x = clipr::read_clip(), strings = TRUE, to_clip = TRUE)
x |
Character string of desired vector items, separated by spaces |
strings |
Should vector items be considered as strings, i.e. quoted. |
to_clip |
Should result be written to clipboard? |
line_to_vector("a b c", to_clip = FALSE) line_to_vector("1 2 3", s = FALSE, t = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.