We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd41a8e commit 07ae9adCopy full SHA for 07ae9ad
1 file changed
R/mfairImportance.R
@@ -54,7 +54,7 @@ getImportanceSF <- function(tree_list, variables_names) {
54
importance_data_frame <- data.frame(variable = gsub("[[:punct:]]", ".", variables_names))
55
56
# For-loop for each tree
57
- for (t in seq_len(length(importance_list))) {
+ for (t in seq_along(importance_list)) {
58
if (!is.null(importance_list[[t]])) {
59
# Importance measures of variables contained in the t-th tree
60
importance_t <- data.frame(
0 commit comments