?aggregate
?by

------------------------------------------------------------------------
----

ir. Thierry Onkelinx

Instituut voor natuur- en bosonderzoek / Reseach Institute for Nature
and Forest

Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
methodology and quality assurance

Gaverstraat 4

9500 Geraardsbergen

Belgium

tel. + 32 54/436 185

[EMAIL PROTECTED]

www.inbo.be 

 

Do not put your faith in what statistics say until you have carefully
considered what they do not say.  ~William W. Watt

A statistical analysis, properly conducted, is a delicate dissection of
uncertainties, a surgery of suppositions. ~M.J.Moroney


-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens d. sarthi maheshwari
Verzonden: woensdag 14 februari 2007 11:41
Aan: [email protected]
Onderwerp: [R] Is this a correct forum to discuss basic R problem?

Hi

Sorry if this is a wrong post in the forum. Please suggest if this is a
correct forum to discuss R related basic problem.

I wanted to perform the following task by using R:

e.g.
 input data.frame
x                  y
============
a                10
b                20
a                10
a                10
b                15
b                15
b                20

In o/p i need

x            y
=========
a           30
b           70

Currently i am storing the data.frame as a database table by using
sqlSave.
Then I am retrieving the data using sqlQuery command. In the query I am
using Group by function of SQL.

is there any smarter way to this in R?


-- 
thanks
Sar

        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

______________________________________________
[email protected] 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