I am trying to use a custom distance on presence/absence data with the function aboot but I keep getting the same error:
Error in .setupMethodsTables(fdef, initialize = TRUE) : no slot of name "group" for this object of class "derivedDefaultMethod" Called from: .setupMethodsTables(fdef, initialize = TRUE
I get the same message when using the Aeut dataset and the custom function "bindist" provided as example:
data(Aeut)
bindist <- function(x){ stopifnot(is.genind(x)) dist(tab(x), method = "binary") }
aboot(Aeut, dist = function(x) bootgen2genind(x) %>% bindist)
--
You received this message because you are subscribed to the Google Groups "poppr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/6d0e8d40-bf2c-4e4b-989a-aca0c93f5d8f%40googlegroups.com.
Hello,That definitely looks like a bug. I'll open an issue and try to get it fixed soon.Best,Zhian
On Mon, Dec 2, 2019 at 9:46 AM eoisriouéaép apoeidoisfdsd <apoei...@gmail.com> wrote:
--I am trying to use a custom distance on presence/absence data with the function aboot but I keep getting the same error:
Error in .setupMethodsTables(fdef, initialize = TRUE) : no slot of name "group" for this object of class "derivedDefaultMethod" Called from: .setupMethodsTables(fdef, initialize = TRUE
I get the same message when using the Aeut dataset and the custom function "bindist" provided as example:
data(Aeut)
bindist <- function(x){ stopifnot(is.genind(x)) dist(tab(x), method = "binary") }
aboot(Aeut, dist = function(x) bootgen2genind(x) %>% bindist)
You received this message because you are subscribed to the Google Groups "poppr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to po...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/c531052d-1ccf-43c8-8ea2-10838801a9e0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/c531052d-1ccf-43c8-8ea2-10838801a9e0%40googlegroups.com.