Re: [R] Apply quantile function to each dataframe in a List R

2014-08-06 Thread Zilefac Elvis
Great! Thanks. AT. On Monday, August 4, 2014 8:59 PM, rhelpmaillist wrote: Try this: lapply(a,function(x) apply(x[,-c(1,2)],2,quantile,probs=0.95)) # a is your example list At 2014-08-05 09:17:23, "Zilefac Elvis" wrote: >Hello, >I would like to calculate for each numeric column in a datafram

Re: [R] Apply quantile function to each dataframe in a List R

2014-08-04 Thread rhelpmaillist
Try this: lapply(a,function(x) apply(x[,-c(1,2)],2,quantile,probs=0.95)) # a is your example list At 2014-08-05 09:17:23, "Zilefac Elvis" wrote: >Hello, >I would like to calculate for each numeric column in a dataframe, >quantile(x,probs=o.95). >My list object has 120 dataframes, each dataframe h

[R] Apply quantile function to each dataframe in a List R

2014-08-04 Thread Zilefac Elvis
Hello, I would like to calculate for each numeric column in a dataframe, quantile(x,probs=o.95). My list object has 120 dataframes, each dataframe has 102 columns. Here is an example as well as a reproducible example: [[120]]   Year Site Sim001 Sim002 Sim003 Sim004 Sim005 Sim006 Sim007 Sim008 Si