I have dataframe df, and want a row with collapsed column values with quotes. Output should be "'a','b','c'", but I have "a,b,c". How can I get the right output?
df<-data.frame(
a=c("a","b","c"),
number=c(1,2,3)
)
paste(df$a,collapse = ",")