From b0c393817762719b8b0581b636acb270a403b1cb Mon Sep 17 00:00:00 2001 From: Gabriel Michael Chavez <52179896+elcompagabe@users.noreply.github.com> Date: Tue, 9 Jul 2019 14:34:37 -0700 Subject: [PATCH] Update find_balance_accuracy_v4.R --- find_balance_accuracy_v4.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/find_balance_accuracy_v4.R b/find_balance_accuracy_v4.R index 0fdc916..4373ef5 100644 --- a/find_balance_accuracy_v4.R +++ b/find_balance_accuracy_v4.R @@ -12,9 +12,9 @@ num_files = length(file_name_list) for (i in 1:num_files) { #file_name <- file_name_list[i] if(length(grep("_file.R","my_file.R",fixed=TRUE)) == 1){ - file_name = file_name_list[(i)] + file_name = file_name_list[[i]] #load(paste0("/Users/user/Desktop/BD2K_project/data/", file_name)) - stats = confM[(4)] + stats = confM[[4]] bal_accs = stats[,11] avg_bal_acc = mean(stats[,11]) print(avg_bal_acc)