Re: [R] list syntax question: which subscript is which

2008-10-15 Thread Patrick Burns
Alternatively if a number of such operations will be done and memory is not an issue, then you could do: singlefoo <- do.call('rbind', foo) max(singlefoo[, 1]) Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User")

Re: [R] list syntax question: which subscript is which

2008-10-14 Thread jim holtman
actually meant to say: max(sapply(foo, function(x) max(x[,1]))) On Tue, Oct 14, 2008 at 5:49 PM, Carl Witthoft <[EMAIL PROTECTED]> wrote: > Hi, > Sorry to bother with something that should be simple, but I can't find it. > > Suppose I have a list, each element of which is a 2xN dataframe, where N

Re: [R] list syntax question: which subscript is which

2008-10-14 Thread jim holtman
try: max(sapply(foo, max)) On Tue, Oct 14, 2008 at 5:49 PM, Carl Witthoft <[EMAIL PROTECTED]> wrote: > Hi, > Sorry to bother with something that should be simple, but I can't find it. > > Suppose I have a list, each element of which is a 2xN dataframe, where N > could be different for each eleme

[R] list syntax question: which subscript is which

2008-10-14 Thread Carl Witthoft
Hi, Sorry to bother with something that should be simple, but I can't find it. Suppose I have a list, each element of which is a 2xN dataframe, where N could be different for each element. Is there some simple structure to let me examine all the elements of each element's first column? For exa