I have many files with common column names. I am trying to save the results of these files in a single file after taking the means of each column. I am using append command but it save the each row with column names as well and that I don’t want. I only want single column names not with every row. Any suggestion…
Share
Try reading the files in using
read.csv. It will work with plain text files as well as CSV files and offers the option of definingheader=TRUE, which will read in the header line of a file as column names, rather than a row.Then, when you have your files as dataframes, you can append them easily using
rbind: