-
Notifications
You must be signed in to change notification settings - Fork 967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setnames could break out early if identical(old,new) #3783
Comments
Actually it already does this in the Lines 2447 to 2451 in a8e926a
Will file a fix for |
I believe this would work already, no? If the pattern in |
@HughParsonage it works but setnames still overwrites the names redundantly |
This case is a nice one. Have been looking at it and @HughParsonage seems right to me: that case (where the pattern is not matched to any column name) does not overwrite the names redundantly. Even where only a few column names are matched, it only updates those. So if those don't touch key or index names, then the key or index name updates will be saved too. The |
Am writing a function that works like
It would be cleaner to just write
And (in the
!length
case) letsetnames
realizeold
andnew
are the same & return early for efficiency.The text was updated successfully, but these errors were encountered: