I'm building a naive Bayes classifier in R, a language I am not familiar with.
I've got multiple csv files for testing the trained classifier, which become data frames when read into R. There are 20 possible categories a given document can be classified into, and each test file contains many documents, so I need an array of 20 copies of a test file to calculate the probabilities for the 20 categories and choose the best one for each document in that test file.
So once I've read a csv file into R and have a data frame, how do I create an array or list with 20 copies of this data frame?