You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...and the equivalent of pos$first$match would be pos$first %>% lapply("[[", "match"), perhaps there's also a purrr verb for this operation.
Anyway, it's not particularly important, I just thought that returning a nested data frame would be more in line with the "tidy regex" description of the package.
The text was updated successfully, but these errors were encountered:
From MangoTheCat#9
@krlmlr
Follow-up to MangoTheCat#2. This might even avoid the need for a special $ operator, because from there on you have "proper" nested data frames.
@gaborcsardi
Good idea. I don't think the special $ can be avoided, though. You still cannot write pos$first$match...
I would need a hierarchical data frame, not a data frames embedded into cells of data frames.
@krlmlr
No, but now you can do pos %>% unnest(first) %>% .$match . It's not as concise but avoids the magic of a custom class.
@krlmlr
...and the equivalent of pos$first$match would be pos$first %>% lapply("[[", "match"), perhaps there's also a purrr verb for this operation.
Anyway, it's not particularly important, I just thought that returning a nested data frame would be more in line with the "tidy regex" description of the package.
The text was updated successfully, but these errors were encountered: