Function is.id() is currently just x == as.free(0) but it really should be generic.
Specifically:
> library(freegroup)
[snip]
> library(permutations)
Attaching package: ‘permutations’
The following objects are masked from ‘package:freegroup’:
inverse, is.id
The following object is masked from ‘package:stats’:
cycle
> is.id(rfree(10,3))
Error in UseMethod("is.id", x) :
no applicable method for 'is.id' applied to an object of class "free"
>
Here, R is trying to use permutations::is.id() which is generic, but not finding a method. I am not sure why attaching the permutations package gives a warning about inverse() being masked, when it (apparently) works as intended:
Function
is.id()
is currently justx == as.free(0)
but it really should be generic.Specifically:
Here, R is trying to use
permutations::is.id()
which is generic, but not finding a method. I am not sure why attaching the permutations package gives a warning aboutinverse()
being masked, when it (apparently) works as intended: