-
Notifications
You must be signed in to change notification settings - Fork 13
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
non-numeric argument error in boot.ppfis #67
Comments
Dear Jana, Could you post a reproducible example please? A quick fix is to duplicate your unique population:
|
@jaflury , have you managed to solve the problem? |
Dear Jerome, subset <- read.table("dat.txt") dum<-subset[subset[,1]==1,-2] but it didn't work. I know it's coming from the fact that there is only one population, but I don't find a way to fix it. It was fixed in this basic.stat function: basic.stats<-function (data, diploid = TRUE, digits = 4) and this function works with the dat.txt. Thank you very much for your help! Best, Jana |
and here's the file: |
Dear @jaflury , sorry for my delayed answer. the following works for me:
and I obtain:
Let me know if this solves the issue. I will look into a more permanent solution when I find time. Many thanks! |
Dear Jerome,
I had the same issue with the population name in basic.stats and it was resolved with the updated function, however I get the same error in boot.ppfis (error message "data[dim(data)[1], 1] + 1 : non-numeric argument to binary operator"). Unfortunately I could not figure out what needs to be changed, could you help me there?
Best, Jana
Originally posted by @jaflury in #65 (comment)
The text was updated successfully, but these errors were encountered: