Re: [R] sum multiple csv files

2018-01-16 Thread Alejandra Lopez-Galan
Hi all, Thanks for your help and sorry for the confusion. Also Thanks Jeff, your solution worked well, I was trying to perform matrix (element-wise) addition as you mentioned, but I didn't know how to formulate my question. Thanks for the references, they also help me to understand more. Cheers,

Re: [R] sum multiple csv files

2018-01-15 Thread Jeff Newmiller
Your message seems unclear, and as evidence the respondents are giving various answers. You should provide a small sample of input and output data as it would look in R to avoid this kind of thrashing about. See [1][2][3] for guidance. Note that you also really need to figure out how to make sur

Re: [R] sum multiple csv files

2018-01-15 Thread PIKAL Petr
Hi see in line > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Alejandra > Lopez-Galan > Sent: Monday, January 15, 2018 10:29 AM > To: r-help@r-project.org > Subject: [R] sum multiple csv files > > Hi, I am pretty new to

Re: [R] sum multiple csv files

2018-01-15 Thread Jeremie Juste
Alejandra Lopez-Galan writes: Hello, I'm not sure to fully answer you question but I'll give it a try. I'll use the library "data.table" as I forgot how to do it in base R. If you don't have it you will have to install it by doing > install.packages(data.table,repos ="http://cran.us.r-project.or

[R] sum multiple csv files

2018-01-15 Thread Alejandra Lopez-Galan
Hi, I am pretty new to R and I would apreciatte very much your help to solve my problem. I have 40 csv files that have the same structure, and I want to merge them into a single data frame. I already have load and combined all the cvs files into a large list, and I created two filenames <- list.f