[R] max number from a list of numbers

2010-05-20 Thread Jonathan
Hi all, I'm hoping this question has a simple answer, but I can't find it through searching or trying commands. I have a list of numeric vectors called 'husk'. I'd just like to treat the set of all numbers from all vectors in the list as if it were one large vector, because I'd like to

Re: [R] max number from a list of numbers

2010-05-20 Thread Bryan Hanson
I think you want unlist with recursive = TRUE, see ?unlist. Bryan * Bryan Hanson Acting Chair Professor of Chemistry Biochemistry DePauw University, Greencastle IN USA On 5/20/10 3:29 PM, Jonathan jonsle...@gmail.com wrote: Hi all, I'm hoping this question has a simple

Re: [R] max number from a list of numbers

2010-05-20 Thread Erik Iverson
You have a list that you want to treat as a vector, so ?unlist it. Jonathan wrote: Hi all, I'm hoping this question has a simple answer, but I can't find it through searching or trying commands. I have a list of numeric vectors called 'husk'. I'd just like to treat the set of all numbers

Re: [R] max number from a list of numbers

2010-05-20 Thread Joshua Wiley
Hello Jonathan, Look at ?sapply Does something like this do what you want? max(sapply(yourlist, max)) Josh On Thu, May 20, 2010 at 12:29 PM, Jonathan jonsle...@gmail.com wrote: Hi all,   I'm hoping this question has a simple answer, but I can't find it through searching or trying

Re: [R] max number from a list of numbers

2010-05-20 Thread Ted Harding
On 20-May-10 19:29:31, Jonathan wrote: Hi all, I'm hoping this question has a simple answer, but I can't find it through searching or trying commands. I have a list of numeric vectors called 'husk'. I'd just like to treat the set of all numbers from all vectors in the list as if it were