Skip to content

Error with custom distance in aboot with PA data #210

@zkamvar

Description

@zkamvar
library(poppr)
#> Loading required package: adegenet
#> Loading required package: ade4
#> Registered S3 method overwritten by 'spdep':
#>   method   from
#>   plot.mst ape
#> 
#>    /// adegenet 2.1.1 is loaded ////////////
#> 
#>    > overview: '?adegenet'
#>    > tutorials/doc/questions: 'adegenetWeb()' 
#>    > bug reports/feature requests: adegenetIssues()
#> Registered S3 method overwritten by 'pegas':
#>   method      from
#>   print.amova ade4
#> This is poppr version 2.8.3. To get started, type package?poppr
#> OMP parallel support: available
data(Aeut)
bindist <- function(x){ stopifnot(is.genind(x)); dist(tab(x), method = "binary") }
aboot(Aeut, dist = function(x) bootgen2genind(x) %>% bindist)
#> Error in .setupMethodsTables(fdef, initialize = TRUE): no slot of name "group" for this object of class "derivedDefaultMethod"

Created on 2019-12-02 by the reprex package (v0.3.0)

This originated from a discussion on the poppr forum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions