deparse_svec | R Documentation |
Convert Integer Vectors To String
deparse_svec(
nums,
connect = "-",
concatenate = TRUE,
collapse = ",",
max_lag = 1
)
nums |
integer vector |
connect |
character used to connect consecutive numbers |
concatenate |
connect strings if there are multiples |
collapse |
if concatenate, character used to connect strings |
max_lag |
defines "consecutive", min = 1 |
strings representing the input vector. For example, c(1, 2, 3)
returns "1-3".
parse_svec
deparse_svec(c(1:10, 15:18))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.