I'm working in RMarkdown. I've got a lengthy df. I've used subset()
to fetch a two column subset of the df. I need to print the entire subset in my report. I use print(df)
. Is it possible to make the subset print in two side-by-side columns (thus reducing the length of the print(df)
output?
Asked
Active
Viewed 54 times
1

RKeithL
- 157
- 1
- 9
-
Have you tried using `kbl` or `kable` functions in order to display your data-frame ? This allows you to display your data-frame into a report table. You could then play on text size or even table margin size. – Yacine Hajji May 04 '22 at 13:51
-
It's easier to help you if you provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick May 04 '22 at 14:02
-
Ah, I was unaware of `kbl`. Thank you, @Yacine Hajji! – RKeithL May 04 '22 at 15:54