Behavior of *_at()
functions with unnamed input
#673
Labels
bug
an unexpected problem or unintended behavior
*_at()
functions with unnamed input
#673
After using
*_at()
functions, I feel like their behavior is a little inconsistent. In documentation it says "modify_at()
only modifies elements given by names or positions." and "Only those elements corresponding to.at
will be modified." I read this as: try finding elements specified in.at
and modify them, while not touching anything else.When
.at
is a string, it works exactly like that when at least one list element is named. However, it throws error when there are no names, in which case I'd expect it to not find any.at
elements and modify nothing while returning the input.A reprex:
Created on 2019-05-25 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: