Re: [R] print data.frame with a list column

2024-01-29 Thread Micha Silver
Excellent, many thanks. On 29/01/2024 16:56, Ivan Krylov wrote: On Mon, 29 Jan 2024 14:19:21 +0200 Micha Silver wrote: Is there some option to force printing the full list? df <- data.frame("name" = "A", "bands" = I(list(1:20))) format.AsIs is responsible for printing columns produced using

Re: [R] print data.frame with a list column

2024-01-29 Thread Ivan Krylov via R-help
On Mon, 29 Jan 2024 14:19:21 +0200 Micha Silver wrote: > Is there some option to force printing the full list? > df <- data.frame("name" = "A", "bands" = I(list(1:20))) format.AsIs is responsible for printing columns produced using I(). It accepts a "width" argument: format(x, width = ) #

[R] print data.frame with a list column

2024-01-29 Thread Micha Silver
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 elli