?table
?aggregate

Also, packages plyr, data.table, and dplyr. You might consider reading [1], but 
if your interests are really as simple as your examples then the table function 
should be sufficient. That function is discussed in the Introduction to R 
document that you really should have read before posting here.

[1] http://www.jstatsoft.org/v40/i01/

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On May 2, 2014 2:23:13 PM PDT, Dr Eberhard Lisse <nos...@lisse.na> wrote:
>Hi,
>
>How do I do something like this without using sqldf?
>
>a <- sqldf("SELECT COUNT(*) FROM b WHERE c = 'd'")
>
>or
>
>e <- sqldf("SELECT f, COUNT(*) FROM b GROUP BY f ORDER BY f")
>
>greetings, el
>
>______________________________________________
>R-help@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@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.

Reply via email to