I need to wrap this function in a for loop (or lapply) and pass in the values using a CSV file. I feel like I might be close to the solution, but I'm not experienced enough in R to know how to do that.
The list values I have to put in by hand and I need to test 10,000 values. That's not practical. I need to put this in some kind of for loop and pass in the values from a CSV file or another way to make this more automated. Any help is appreciated.
Where are the functions run, calculate_fnscore, and boolean_to_bit coming from? Did you write these or are they from a package? I assume that the list contains arguments to the function calculate_fnscore, and I'm unsure of the advantage of passing these via run.
Does your CSV file use NULL for missing values? If yes, you could convert these to NA by setting the argument na.strings = "NULL" for the function read.csv.