I have 1000 CSV files from dfr.jstor.org with two columns, KEYWORDS and WEIGHT. The length of each column varies from file to file. Here's a snippet of one CSV file:
KEYTERMS WEIGHT
canoe 1
archaic 0.273
pinus 0.191
florida 0.164
I want to use R to get the KEYTERMS column from each CSV file and merge it into a single data frame like this:
KEYTERMS_CSVFILENAME1 KEYTERMS_CSVFILENAME2 KEYTERMS_CSVFILENAME3
thwart newsom period
dugout site cypress
sigma date hartmann
precontact NA florida
orange NA NA
Where CSVFILENAME1 is the name of the CSV file where those keywords came from and NA is an empty cell.
I think my problem is very simliar to this one with the difference that I have varying column lengths. This may also be relevant to a solution, and this looks right on topic, but I need a bit of hand-holding to make it suit my situation. Thanks in advance!