I can't find a way to create a loop that extracts the values in the top 20 percentile of a data frame's first row and stores the associated column header in a list name, for example, "top_2017".
it should do this for every row and create a different list per row, but I cannot make the "left part of the equal" dynamic.
I tried different loops with "i" but, once I write it in the left part of the equation, it is recognised as a simple letter