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

[R] 2SLS with Fixed Effects and Control Variables

2024-01-29 Thread Kelis Wong
Dear John Fox, Christian Kleiber, and Achim Zeileis, I am attempting to run various independent variable parameters to assess their suitability. Unfortunately, I hit a snag and couldn't get the tests to run properly. When I used ivreg, I got an error message saying: "Error in eval(predvars, data,

Re: [R] DescTools::Quantile

2024-01-29 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
It looks like a homework assignment. It also looks like you didn't read the documentation carefully enough. The 'len.out' argument in seq is solely for specifying the length of a sequence. The 'quantile' function omputes the empirical quantile of raw data in the vector 'x' at cumulative probab