Skip to content

Commit 07ae9ad

Browse files
committed
Update mfairImportance.R
1 parent dd41a8e commit 07ae9ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/mfairImportance.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ getImportanceSF <- function(tree_list, variables_names) {
5454
importance_data_frame <- data.frame(variable = gsub("[[:punct:]]", ".", variables_names))
5555

5656
# For-loop for each tree
57-
for (t in seq_len(length(importance_list))) {
57+
for (t in seq_along(importance_list)) {
5858
if (!is.null(importance_list[[t]])) {
5959
# Importance measures of variables contained in the t-th tree
6060
importance_t <- data.frame(

0 commit comments

Comments
 (0)