[R] Adding ranks to a repeatedly ragged array

2004-09-13 Thread Wolfram Fischer
How can I add an extra column containing the rank to a ragged array indexed by more than one grouping factors? E.g. with the barley dataset: How can I to add an additional column ``rank'' containing the rank of the ``yield'' of the different varieties in relation to the indices ``year'' and

Re: [R] Adding ranks to a repeatedly ragged array

2004-09-13 Thread Prof Brian Ripley
What do you mean by `a repeatedly ragged array': you haven't defined it? There is no dataset `barley' in vanilla R. Which one did you mean? There is a data frame in package lattice, but that is neither an array nor ragged. If that is what you want, rank.lists will be a list matrix. The