Sample data:
data <- round(rnorm(10,100000,10000),-1)
char <- as.character(data)
and I would like comma between the characters:
[1] "104350","108800","101320","94140","102260","89340","114220","105830","111270","85300"
I have tried paste()
and also read.table
& read.lines
with sep=","
with no success.