Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab can't return frequencies for P/A genpop objects #105

Closed
zkamvar opened this issue Nov 12, 2015 · 1 comment
Closed

tab can't return frequencies for P/A genpop objects #105

zkamvar opened this issue Nov 12, 2015 · 1 comment
Assignees
Labels

Comments

@zkamvar
Copy link
Collaborator

zkamvar commented Nov 12, 2015

Example:

x <- read.table(system.file("files/AFLP.txt", package = "adegenet"))
aflp <- df2genind(x, type = "PA", ploidy = 1, pop = c(rep(1, 4), rep(2, 3)))
tab(genind2genpop(aflp), freq = TRUE)
## Error in FUN(newX[, i], ...) : arguments must have same length 

This comes down to the line here where it attempts to do a tapply using a NULL loc.fac slot. I'll take care of this bug and write a test.

@zkamvar zkamvar added the bug label Nov 12, 2015
@zkamvar zkamvar self-assigned this Nov 12, 2015
@thibautjombart
Copy link
Owner

thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants