Re: [R] repeat function for entire list of matrices

2012-01-30 Thread R. Michael Weylandt
No problem. Glad it worked for you. Michael On Mon, Jan 30, 2012 at 12:05 PM, pabears wrote: > michael, > > i don't know what happened, i was reading up on ?lapply(), i was up really > late, and somehow it didn't seem to take, but i tried it again this morning > and it worked like a charm...

Re: [R] repeat function for entire list of matrices

2012-01-30 Thread pabears
michael, i don't know what happened, i was reading up on ?lapply(), i was up really late, and somehow it didn't seem to take, but i tried it again this morning and it worked like a charm.(sorry about the ellipses, i was just being lazy/unclear). that's great, thanks, this is a great h

Re: [R] repeat function for entire list of matrices

2012-01-30 Thread R. Michael Weylandt
lapply() takes a function in its second argument, but that is not what you passed it. Also, there's no such construct in R as "." What happens with the code I gave you? Michael On Sun, Jan 29, 2012 at 4:28 PM, pabears wrote: > didn't seem to quite work: > > i tried different subsetting.

Re: [R] repeat function for entire list of matrices

2012-01-30 Thread pabears
didn't seem to quite work: i tried different subsetting. lapply(nestedseasonlower, nested(nestedseason,.) are there any functions that can repeat a function while "counting" each iteration of the repeated function? (n=1, n=2, n=3) thanks -- View this message in context: http://r.7

Re: [R] repeat function for entire list of matrices

2012-01-27 Thread R. Michael Weylandt
?lapply Perhaps (untested): lapply(listofmatrices, nested, method="binmatnest2") Michael On Fri, Jan 27, 2012 at 3:19 PM, pabears wrote: > hi all. > > perhaps someone can help me with subsetting here > > i'm trying to use the nested() function in the bipartite package.  my > proble

[R] repeat function for entire list of matrices

2012-01-27 Thread pabears
hi all. perhaps someone can help me with subsetting here i'm trying to use the nested() function in the bipartite package. my problem is that i have a list of 10,000 matrices and i want the output to be a vector of the nested() function on each of the 10,000 matrices (so i can use th