Re: [R] mapply to lapply

2011-04-18 Thread Andreas Borg
My solution would be to use an index variable that goes from 1 to the number of rows that are to be processed, along with a helper function which calls Fwithcellvalue with the suitable arguments: F2[i+1,j+1]-sum(lapply(1:nrow(cells), function(rowInd)

Re: [R] mapply to lapply

2011-04-18 Thread Alaios
think I should try out now? Vielen Dank Alex --- On Mon, 4/18/11, Andreas Borg andreas.b...@unimedizin-mainz.de wrote: From: Andreas Borg andreas.b...@unimedizin-mainz.de Subject: Re: [R] mapply to lapply To: Alaios ala...@yahoo.com Cc: R-help@r-project.org Date: Monday, April 18, 2011, 11:10

Re: [R] mapply to lapply

2011-04-18 Thread Kenn Konstabel
--- On Mon, 4/18/11, Andreas Borg andreas.b...@unimedizin-mainz.de wrote: From: Andreas Borg andreas.b...@unimedizin-mainz.de Subject: Re: [R] mapply to lapply To: Alaios ala...@yahoo.com Cc: R-help@r-project.org Date: Monday, April 18, 2011, 11:10 AM My solution would be to use an index

Re: [R] mapply to lapply

2011-04-18 Thread Alaios
Thanks you very much. You made it work! Cheers --- On Mon, 4/18/11, Kenn Konstabel lebats...@gmail.com wrote: From: Kenn Konstabel lebats...@gmail.com Subject: Re: [R] mapply to lapply To: Alaios ala...@yahoo.com Cc: R-help@r-project.org Date: Monday, April 18, 2011, 1:06 PM On Mon, Apr 18

Re: [R] mapply to lapply

2011-04-18 Thread Andreas Borg
,d), sep = ) : argument i is missing, with no default What do you think I should try out now? Vielen Dank Alex --- On Mon, 4/18/11, Andreas Borg andreas.b...@unimedizin-mainz.de wrote: From: Andreas Borg andreas.b...@unimedizin-mainz.de Subject: Re: [R] mapply to lapply To: Alaios ala