If I do this:
dplyr::mutate(MeanValue = mean(RSSI), ReadCount = n())
everything is working fine. But when I try to qualify a function:
dplyr::mutate(MeanValue = mean(RSSI), ReadCount = dplyr::n())
I get the error indicated in the header.
So, I really have no problems, I just can avoid it, but I wonder why this is happening. I already looked at another question ( dplyr: "Error in n (): function should not be called directly" ), but as far as I know, dplyr is the only library that I use. I tried to do what the answer suggests, but
detach(package:plyr)
leads to
Error in disconnecting (package: plyr): invalid argument 'name' and
conflicts()
doesn't mention n ():
[1] "filter" "lag" "body <-" "intersect" "kronecker" "setdiff" "setequal" "union"
Most of which is the cause of dplyr.
I think I'm not the only one who was embarrassed by this?
r dplyr
Silverclaw
source share