Skip to content
Prev 391864 / 398500 Next

how to add comma to string vector?

Thank you.
```
raws <- c("field_1", "field_2",  "field_3")
paste0("['", paste0(raws, collapse="', '"), "']")
```
gave the most fitting option...
On Fri, Jun 10, 2022 at 12:31 PM Rasmus Liland <jral at posteo.no> wrote: