toStr | R Documentation |
Similar to toString but with additional parameters for more flexibility.
toStr(x, join_word = "and", quote = FALSE, oxford_comma = FALSE)
x |
A vector to be converted. |
join_word |
(character) The word to use between the two last item. Default is 'and'. Set to NULL to omit. |
quote |
(logical) Whether to add single quotes around each word. |
oxford_comma |
(logical) Whether to use an oxford comma. Default FALSE. Ignored if |
A character string.
toStr(letters[1:3])
toStr(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.