[R] Data frame: how to create list of row max?

Johannes Graumann johannes_graumann at web.de
Mon Feb 19 14:37:56 CET 2007


Thanks to you and Brian Ripley. Quite confusing all this ...

Thanks again.

Joh

On Monday 19 February 2007 13:42, David Barron wrote:
> Try do.call("pmax",c(dataframe[,intensityindices],na.rm=TRUE))
>
> This is like the second example in the help page for do.call
>
> On 19/02/07, Johannes Graumann <johannes_graumann at web.de> wrote:
> > On Monday 19 February 2007 11:53, Prof Brian Ripley wrote:
> > > do.call("pmax", dataframe[,intensityindeces])
> >
> > Thank you very much for your help!
> >
> > Any idea why
> > do.call("pmax",list(na.rm=TRUE),dataframe[,intensityindeces]) would give
> > me
> >
> > Error in if (quote) { : argument is not interpretable as logical
> > In addition: Warning message:
> > the condition has length > 1 and only the first element will be used in:
> > if (quote) {
> >
> > ?
> >
> > Thanks, Joh
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html and provide commented,
> > minimal, self-contained, reproducible code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070219/10f280a6/attachment.bin 


More information about the R-help mailing list