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

Error in matrix(NA, nrow = nfolds, ncol = numi2) : invalid 'ncol' value (too large or NA) #61

Open
seasonzhao opened this issue May 4, 2024 · 2 comments

Comments

@seasonzhao
Copy link

Error in matrix(NA, nrow = nfolds, ncol = numi2) : invalid 'ncol' value (too large or NA)

what should I do?
Does anyone encounter this error?

@eacho111
Copy link

Error in matrix(NA, nrow = nfolds, ncol = numi2) : invalid 'ncol' value (too large or NA)

what should I do? Does anyone encounter this error?

Hello!I seem to find this issue. Maybe you have to make sure your phenotype data is conbined with c(1,0).If your phenotype data type is factor, run the next code :phenotype <- as.numeric(as.character(phenotype)) to make sure data with c(1,0).Because this package code will check the data,if both 0 and 1 are existing, code will go on.

@DylanGuo1101
Copy link

Error in matrix(NA, nrow = nfolds, ncol = numi2) : invalid 'ncol' value (too large or NA)
what should I do? Does anyone encounter this error?

Hello!I seem to find this issue. Maybe you have to make sure your phenotype data is conbined with c(1,0).If your phenotype data type is factor, run the next code :phenotype <- as.numeric(as.character(phenotype)) to make sure data with c(1,0).Because this package code will check the data,if both 0 and 1 are existing, code will go on.

It really works!

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

No branches or pull requests

3 participants