-
Notifications
You must be signed in to change notification settings - Fork 103
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
Correcting the rename dialog? #9265
Comments
Thanks for this @rdstern. The issue is that the code is looking for the wrong columns because you're using "Starts with" not "Matches".
So all you need to do is change from the "Starts with" option to "Matches": (I've put the replacement as NEW as otherwise there's an issue that we already have a column called |
@lilyclements great. I also misunderstood the error that I got, because I assumed it was because of the dot and regex. It was because of the names being duplicated. You see I wanted it to be simple. Just delete Xdot from the start of each name - So I was really happy that I can easily replace Xdot by NEW using starts with and no trouble! I still need to write this up properly in the help, and possibly edit the dialog a bit if some options assume regex by default and others do not. |
@N-thony thanks for reporting. That error is that the |
Yes, that is correct, @derekagorhom or @Fidel365 can easily fix this. |
WE are often hitting an error after using the Rename with button and then using with the Single or the Multiple Buttons afterward. It still tries to process the rename with option. It is always resolved by pressing Reset. Here is an example to try: Importing the file I want to delete the superflous dates (9 columns), or trhe Then change Date to Day followed by Rename With, on Edit > Starts with X. to nothing works fine. But the X, forst and then changfinf Date to Day afterwards, gives an error. |
@Fidel365 any plan on this? |
@N-thony on it |
@N-thony, @Fidel365 and @lilyclements While we are talking about the Renaming Dialog I have a question. Why is the edit option only available on the data frame tab. It seems like it would be useful on the Selected Variables tab too, could it be added? All the other options seem to be the same. |
t2_subset.xlsx
Here is a dataset where many variables start with
X.
I would like to delete the
X.
from the names using thre Rename 3rd option by a function.If I do it really simply, namely replace X. by empty, it gives and error in dplyr. I think that is because of the default using regex. So I tried replacing
X\\.
and it no longer gives an error, but also doesn't replace.Help please and we should also write this up. Can @N-thony or @lilyclements help?
The text was updated successfully, but these errors were encountered: