Skip to content
Prev 277698 / 398506 Next

split list of characters in groups of 2

On 17.11.2011 10:31, Dennis Murphy wrote:
Or for short and slightly faster for huge data use column-wise 
operations as in:

apply(matrix(var.names, nrow=2), 2, paste, collapse=", ")

Best,
Uwe Ligges