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
reshape2 calls melt.data.frame function incorrectly if the reshape package was loaded #63
Comments
This issue is also affecting Modified example from the tidyr issue:
[1] "time" "stock" "price"
[1] "time" "variable" "value" |
This is not a problem with either According to If your code depends on using If your problem is with a package, the problem goes deeper since |
ditto @odeleongt library(reshape2)
library(reshape) Attaching package: ‘reshape’
The following objects are masked from ‘package:reshape2’:
colsplit, melt, recast You can see |
this isn't actually correct. if we just got caught out with this, because we call we can't work around this by calling for example,
|
a solution would be to add this would allow people to call happy to submit a PR if people see this as a good solution. i can't think of a better one. with thanks |
Seeing as neither |
ah, i did not know about the 3 colons. with thanks |
If the
reshape
package is loaded at the same environment that the packagereshape2
thenreshape2::melt
function will incorrectly callreshape::melt.data.frame
function instead ofreshape2::melt.data.frame
. An example below:The output is different between function calls because
variable.name
argument is defined asvariable_name
onreshape
package. This issue might break package that uses reshape2 instead of reashape package.The text was updated successfully, but these errors were encountered: