Hello,
I recently watched a Hardley W. video about purrr.
I understand (correct me if I am wrong) that map_df is superseded.
He mentioned something as list_rbind or list_cbind in order to join results/data frames from a process.
Now I tried to reach the map_df help and I can't see It.
The purrr cheatsheet doesn't list map_df or map_dfr.
Is there a problem if I keep using map_df?
I know this post is too general, but I prefer some feedback from you, guys.
Thanks for your time, patience and interest.
Have a nice week.
The meaning of superseeded in this context is explained here:
A 1 function has a known better alternative, but the function itself is not going away . A superseded function will not emit a warning (since there’s no risk if you keep using it), but the documentation will tell you what we recommend instead .
Superseded functions will not receive new features, but will receive any critical bug fixes needed to keep it working. In some ways a superseded function is actually safer than a stable function because it’s guaranteed never to change (for better or for worse).
So you can keep using map_dfr()
, it won't disappear any time soon. But the authors of purrr
think you should rather use map() |> list_rbind()
.
I can still access ?purrr::map_df
, and it is available online (maybe you haven't loaded library(purrr)
?)
Thanks for the superseded explanation.
I tried using list_rbind but It feels a bit strange now.