[R] How to use tapply with more than one variables grouped
PIKAL Petr
petr.pikal at precheza.cz
Mon Oct 22 16:16:00 CEST 2012
Hi
> -----Original Message-----
> From: Bert Gunter [mailto:gunter.berton at gene.com]
> Sent: Monday, October 22, 2012 4:00 PM
> To: PIKAL Petr
> Cc: noobmin; r-help at r-project.org
> Subject: Re: [R] How to use tapply with more than one variables grouped
>
> Inline.
>
> On Mon, Oct 22, 2012 at 6:55 AM, PIKAL Petr <petr.pikal at precheza.cz>
> wrote:
> > Hi
> >
> >
> >> -----Original Message-----
> >> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> >> project.org] On Behalf Of noobmin
> >> Sent: Monday, October 22, 2012 12:31 PM
> >> To: r-help at r-project.org
> >> Subject: Re: [R] How to use tapply with more than one variables
> >> grouped
> >>
> >> interTable <-data.frame (Tapply ($ contb_receipt_amt date, list ($
> >> cand_nm date, $ contbr_st date), sum))
> >>
> >> I got create a table with the sum total contribution
> >> (contb_receipt_amt) of each presidential candidate (cand_nm) in each
> >> state (contbr_st). How could from interTable create a table of
> >> states where candidate 'Obama' has received greater Contribution?
> >
> > Greater than what? How does the table look like? Sorry I forgot my
> crystal ball at home.
> >
> > Maybe you want to look to
> >
> > ?"]"
>
> -- or ?"[" rather. :-)
THX
Correct, I forgot to check.
Regards
Petr
>
> -- Bert
>
>
> >
> > Regards
> > Petr
> >
> >
> >>
> >> thanks
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://r.789695.n4.nabble.com/How-to-use-
> >> tapply-with-more-than-one-variables-grouped-tp4646948p4646985.html
> >> Sent from the R help mailing list archive at Nabble.com.
> >>
> >> ______________________________________________
> >> R-help at r-project.org 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.
> >
> > ______________________________________________
> > R-help at r-project.org 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.
>
>
>
> --
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> Internal Contact Info:
> Phone: 467-7374
> Website:
> http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-
> biostatistics/pdb-ncb-home.htm
More information about the R-help
mailing list