Iterate Calculations for Multiple Data Tables to New Data Table

I think we need some sample data, perhaps a couple of very simple mock data tables and a bit of code. At the moment we have no idea of what format the data is in (tibble, data.frame, list, matrix?) and I am not sure that some of your code will run. For example, I do not belief that one can start a variable name with a numeric.

25perc_grtbl1819 <- quantile(grtbl1819$percent)[2]

There are probably at least four or five ways to approach the problem but we need a bit more information about the data structure in particular. Come to think of it, are the data tables even currently in an R format or do we need to read them in?

1 Like