Closed klg-2016 closed 4 years ago
Is it an issue about what other packages you have loaded? Do you need to specify dplyr::rename?
On Fri, Sep 4, 2020 at 15:09 klg-2016 notifications@github.com wrote:
this line of code is just trying to rename the "Species" column as SppCode to be able to left join the things, right? it's throwing this error for me, even though it was running fine previously:
Error in rename(., SppCode = Species) :
unused argument (SppCode = Species)
If I try to ## it out, it then gets angry because it doesn't know how to combine the two data frames
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kaitlyngaynor/gorongosa-mesocarnivores/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHA7WT2OJSP36ZW7RXZVCKLSEFQQZANCNFSM4QZQBFVA .
-- Sent from my phone
YES that worked!
Always a good trick when your error is telling you that the function is unable to recognize the arguments. It is often because you loaded a different package with a rename function that overwrote dplyr. You can test this with ?rename and see what packages have this function loaded
On Fri, Sep 4, 2020 at 15:13 klg-2016 notifications@github.com wrote:
YES that worked!
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/kaitlyngaynor/gorongosa-mesocarnivores/issues/87#issuecomment-687422410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHA7WTZ3375L6XIDZ3KR7BTSEFQ7RANCNFSM4QZQBFVA .
-- Sent from my phone
thank you!
https://github.com/kaitlyngaynor/gorongosa-mesocarnivores/blob/25e06a4f54eb499f9093bc5a09b8ab3cd7f0b0a3/scripts/02-multi-species-occupancy-analysis-GNP.Rmd#L317
this line of code is just trying to rename the "Species" column as SppCode to be able to left join the things, right? it's throwing this error for me, even though it was running fine previously: Error in rename(., SppCode = Species) : unused argument (SppCode = Species)
If I try to ## it out, it then gets angry because it doesn't know how to combine the two data frames