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 w

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 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 li

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 fr

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" wrote: > Hi all, >I'm hoping this question has a simple answer, but I can't