thibautjombart / adegenet

adegenet: a R package for the multivariate analysis of genetic markers
165 stars 64 forks source link

accessor nAll doesn't work on genindSummary #354

Open romunov opened 1 year ago

romunov commented 1 year ago

Because genindSummary doesn't appear to be a registered class (class designation slapped on here), using nAll on such an object doesn't work. It did in the past, though. πŸ€” Not sure what changed, perhaps the way S4 methods are called with a different version of R?

library(adegenet)

data(microbov)

xy <- summary(microbov)

nAll(xy)

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function β€˜nAll’ for signature β€˜"genindSummary"’