jacob-long / panelr

Regression models and utilities for repeated measures and panel data
Other
98 stars 21 forks source link

Implement a `nest()` method for `panel_data` #53

Closed DavisVaughan closed 1 year ago

DavisVaughan commented 1 year ago

Hi there,

We ran revdeps for the upcoming release of tidyr 1.3.0 and your package came up.

In dev tidyr, nest() now internally uses [ like data[cols] to select columns along the way. This is incompatible with the sticky columns in panelr because we expect that the columns returned by [ exactly correspond to those in cols.

I've patched this here by adding a nest() method for panel_data which seems to work like you'd want it to.

We plan to release tidyr 1.3.0 on January 23rd.

This patch is backwards compatible with CRAN tidyr. If you could go ahead and release a version of your package to CRAN with this patch, then it would help us out a lot when we release tidyr. Thanks!