<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<br><br>Sorry for the simple question, but how do I use a function, such as quantile, which returns multiple values.<br><br>For example,<br><br>data(iris)<br>IRIS  <- as.data.table(iris)<br>IRIS[, quantile(Sepal.Length), by = Species]<br><br>## returns the following.<br>       Species    V1<br> 1:     setosa 4.300<br> 2:     setosa 4.800<br> 3:     setosa 5.000<br> 4:     setosa 5.200<br> 5:     setosa 5.800<br> 6: versicolor 4.900<br> 7: versicolor 5.600<br> 8: versicolor 5.900<br>....<br><br>I would like the values returned as columns or a vector with the column names returned by the quantile function.<br><br>Thanks,<br><br>Matt<br>                                       </div></body>
</html>