How to replace column names in a .csv file by matching them with values from another file
I have two files that I am working with. Both have thousands of values, so some of the simpler/more traditional formatting methods with vector lists etc. don’t work. The biggest issues I am running into are that the values I am working with are different lengths and that the closures are not subsettable. I am reluctant to pad the smaller file so that they are the same length, so I have been using setnames
rather than match
or another function.