**another plyr example** quantiles (0.05, 0.25, 0.5, 0.75, 0.95) of DSC by temperature bin

There are plenty of good examples on how to use functions from the plyr package. Here is one more, demonstrating how to use `ddply` with a custom function. Note that there are two places where the example function may blow up if you pass in poorly formatted or strange data: calls to 1) `t.test()` and 2) `quantile()`. Also note the use of the *transpose* function, `t()`, for converting column-wise data into row-wise data– suitable for inclusion into a dataframe containing a single row.

read more

*Related*

To

**leave a comment** for the author, please follow the link and comment on their blog:

** dylan's blog**.

R-bloggers.com offers

**daily e-mail updates** about

R news and

tutorials on topics such as:

Data science,

Big Data, R jobs, visualization (

ggplot2,

Boxplots,

maps,

animation), programming (

RStudio,

Sweave,

LaTeX,

SQL,

Eclipse,

git,

hadoop,

Web Scraping) statistics (

regression,

PCA,

time series,

trading) and more...

If you got this far, why not

__subscribe for updates__ from the site? Choose your flavor:

e-mail,

twitter,

RSS, or

facebook...

**Tags:** Dylan