Dear Mark and all interested,
Unfortunately the code provided by Mark does not work - there is a
syntax error when run as provided. I looked at possibly solving the
problem, but without much knowledge of the output of "split" (looks
like a list of lists, and not a list of data frames), it i
Dear all,
Thanks to Jim and Mark for suggesting including the reproducible
code. Please note that the enclosed file would need to go to into the
home folder or that the path for reading the CSV file be changed. I
hope no encoding issues emerge when reading it.
And the code
library(Hmis
Apologies, just a typo in the first instruction (when translating the
names), the question is still valid
On 21 Oct 2008, at 00:38, Ivan Alves wrote:
Dear all,
I would like to aggregate a data frame (consisting of 2 columns - one
for the bins, say factors, and one for the values) along bins
Dear all,
I would like to aggregate a data frame (consisting of 2 columns - one
for the bins, say factors, and one for the values) along bins and
quantiles within the bins.
I have tried
aggregate(data.frame$values, list(bin = data.frame
$bin,Quantile=cut2(data.frame$bin,g=10)),sum)
but the
4 matches
Mail list logo