Skip to content
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

rename problems #1388

Closed
bachlaw opened this issue Sep 5, 2015 · 3 comments
Closed

rename problems #1388

bachlaw opened this issue Sep 5, 2015 · 3 comments

Comments

@bachlaw
Copy link

bachlaw commented Sep 5, 2015

It may just be me, but I continue to have problems "rename" in dplyr, even in version 0.4.3. You can replicate the problem here:

a <- c(1, 2, 3)
b <- c(10, 20, 30)
c <- data.frame(a,b)
c

This worked fine. Then:

rename(c, z=a)
Error in rename(c, z = a) : unused argument (z = a)

I tried the reverse as well:

This gives an error:
Error in rename(c, a = z) : unused argument (a = z)

> R.Version(
+ )
$platform
[1] "x86_64-pc-linux-gnu"

$arch
[1] "x86_64"

$os
[1] "linux-gnu"

$system
[1] "x86_64, linux-gnu"

$status
[1] ""

$major
[1] "3"

$minor
[1] "1.3"

$year
[1] "2015"

$month
[1] "03"

$day
[1] "09"

$`svn rev`
[1] "67962"

$language
[1] "R"

$version.string
[1] "R version 3.1.3 (2015-03-09)"

$nickname
[1] "Smooth Sidewalk"

I've looked for "dumb" moves on my part creating this issue, but I can't find any.

@hadley
Copy link
Member

hadley commented Sep 7, 2015

Try in a fresh R session - looks like you have something overriding rename

@hadley hadley closed this as completed Sep 7, 2015
@bharathsivaraman
Copy link

I had the same issue and it did not go away despite restarting the session. I loaded tidyr, dply, and plyr in my session. So that was causing the issue. I found the answer in this post on stack overflow.It resolved my issue.

http://stackoverflow.com/questions/26371279/dplyr-0-3-0-2-rename-idiom-unstable-when-reshape-package-is-loaded

@roharagit
Copy link

might have a conflict with another package, did you try "dplyr::rename"?

@lock lock bot locked as resolved and limited conversation to collaborators Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants