bruigtp / flowchart

flowchart is an R package for drawing participant flow diagrams directly from a dataframe using tidyverse.
https://bruigtp.github.io/flowchart/
Other
36 stars 1 forks source link

feature request: fc_view() function #7

Open higgi13425 opened 2 weeks ago

higgi13425 commented 2 weeks ago

In order to use fc_modify, it would be helpful to have a function fc_view() to be used in place of fc_draw() to view the full fc table of each object to learn the ids and variables that can be modified. Then you will know what to modify in a fc_modify step before you fc_draw().

Or put the fc table into the environment.

higgi13425 commented 2 weeks ago

If I do upa_fc$fc %>% View() I can only see 1 row for id = 1, the initial box

higgi13425 commented 2 weeks ago

I can get a reasonable result if I leave off the fc_draw() and replace it with View()

higgi13425 commented 2 weeks ago

This still might be nice complementary function when building up a flowchart. This could be a wrapper for purrr::pluck(2) named as fc_view()

pasahe commented 2 weeks ago

Thank you very much! This would be a great feature for the package. It's true that it would be much easier to access the information of the $fc element this way. We will work on this for the next release.

higgi13425 commented 2 weeks ago

thanks! great package!