Dear Markus,
Try this:

# Data set
set.seed(123)
mylist=list(a=rnorm(10),b=rpois(15,10),f=rnorm(30,12,3))
mylist


# min and max
temp=lapply(mylist,function(x){
 res=c(min(x),max(x))
 names(res)=c('Min.','Max.')
 res
}
)

do.call(rbind,temp)
Min.      Max.
a -1.265061  1.715065
b  3.000000 15.000000
f  7.353742 18.506868


HTH,

Jorge



On Fri, Sep 5, 2008 at 11:26 AM, Markus Mühlbacher <muehliman@yahoo.com>wrote:

> Hi @ all,
>
> how do I get the largest or lowest k values of list? It must similar to the
> min() / max() function, but I just don't get it.
>
> Best wishes,
> Markus
>
>
>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

