sunduanchen / Scissor

Scissor package
GNU General Public License v3.0
168 stars 29 forks source link

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

Open seasonzhao opened 2 months ago

seasonzhao commented 2 months ago

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 commented 1 month ago

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.