Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 479

Merge cells horizontally with datatable in R

$
0
0

I would like to merge cells horizontally (merge 2 columns) on one row.

Minimum, reproducible example:

datatable(data.frame('A' = c('a', 1),'B' = c('bc', 2),'C' = c('', 3),'D' = c('de', 4),'E' = c('', 5)))

enter image description here

Desired output:

enter image description here

Thank you!


Viewing all articles
Browse latest Browse all 479

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>