Closed cdolladille closed 4 months ago
I think this is the behaviour we use consistently across the tidyverse — if you supply the name of a variable where output should go, it will overwrite any existing variable with that name. So that means we either have to document it everywhere (since otherwise folks will be confused when it's not documented), or nowhere. And since other functions that use the principle (like dplyr::mutate()
and tidyr::separate_wider_*
) don't document it, it looks like nowhere is the better better.
Hello,
I started using
list_rbind()
recently and found the following behavior : if argnames_to
is provided with a value that is also a column name of themap
output, then the column is overwritten.Returns
a expected value expected value
Returns
a t1 t2
That may be an intended behavior but I can't find it documented in the
?list_rbind()
help. A message, a warning or a documentation could help?Sorry if I missed the place where it's written, and thank you so much for developping all these consistent packages!