[R] print data.frame with a list column

Micha Silver t@v|b@r @end|ng |rom gm@||@com
Mon Jan 29 13:19:21 CET 2024


I have a data.frame with one column as a list. When printing (or using 
knitr::kable) the list gets truncated. Is there some option to force 
printing the full list?


MWE:


df <- data.frame("name" = "A", "bands" = I(list(1:20))) > print(df) name 
bands 1 A 1, 2, 3,.... I'd like to avoid the ellipsis in "bands" column, 
rather print all list elements. Thanks

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918



More information about the R-help mailing list