Your script works fine for me -- no error messages, the specified variable renamed to "Output" in both data frames. Try changing rename to dplyr::rename. If that fixes the problem, then something in your actual code (which I assume is more complex than what you posted here) must be masking the rename function.
1 Like