i have df multiple columns have many rows. want take 1 column , add single quotes around values , comma afterwards.
- column x 111111 222222 333333 444444
what wanted like:
- column x '111111', '222222', '333333', '444444',
if column df$x do:
df$x <- paste0("'", df$x, "',")
Comments
Post a Comment