Error in factor levels
I am using the bnlearn package, specifically the boot.strength function.
The data frame I am using in the boot.strength function has 5000 columns
and 130 rows. When I try to run the code
data1 <- boot.strength(df, R = 20, m = nrow(df), "gs",
algorithm.args = list(), cpdag = TRUE,
debug = FALSE)
I get the error:
Error in configurations(minimal.data.frame.column(data, sx)) :
attempting to create a factor with more than INT_MAX levels.
Does anyone know what this error means or how I can fix it?
No comments:
Post a Comment