I am using R to sum up column "A" in multiple .CSV files, I've prepared code for 1 csv file, is there anyway that i can process all the csv files in one go and output as one?
MyFile <- read.csv(tk_choose.files(caption = "Choose CSV files from directory",),header = TRUE)%>% # Select Input CSV Data
transmute(A)%>%
summarise_all(sum,)%>%
write.csv(file = choose.files()) # Output As CSV File)
here is the output looks like
A
file1 658839755
What i want is
A
file1 658839755
file2 1541654313
file3 4643213843
Is it possible to make it happen?
Thanks guys