Re: [R] Summing Data in R

2011-12-27 Thread jim holtman
x27;Error > while parsing input text'.) > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf Of steven.hazen >> Sent:

Re: [R] Summing Data in R

2011-12-27 Thread William Dunlap
December 27, 2011 10:01 AM > To: r-help@r-project.org > Subject: Re: [R] Summing Data in R > > Yes that is what I'm trying to do, however when I enter the code > > aggregate(dstats[,c('QUOTA','L.R.QTA','L.R.A.1ST','L.R.S.1ST','L.N.Q

Re: [R] Summing Data in R

2011-12-27 Thread David Winsemius
On Dec 27, 2011, at 1:01 PM, steven.hazen wrote: Yes that is what I'm trying to do, however when I enter the code aggregate(dstats[,c('QUOTA','L.R.QTA','L.R.A.1ST','L.R.S. 1ST','L.N.QTA','L.N.A.1ST','L.N.S.1ST','R.R.QTA','R.R.A.1ST','R.R.A. 2ND','R.R.A.3RD','R.R.S.1ST','R.R.S.2ND','R.R.S.3R'

Re: [R] Summing Data in R

2011-12-27 Thread steven.hazen
Yes that is what I'm trying to do, however when I enter the code aggregate(dstats[,c('QUOTA','L.R.QTA','L.R.A.1ST','L.R.S.1ST','L.N.QTA','L.N.A.1ST','L.N.S.1ST','R.R.QTA','R.R.A.1ST','R.R.A.2ND','R.R.A.3RD','R.R.S.1ST','R.R.S.2ND','R.R.S.3R','R.N.QTA','R.N.A.1ST','R.N.A.2ND','R.N.A.3RD','R.N.S.1S

Re: [R] Summing Data in R

2011-12-27 Thread jim holtman
Is this what you are after? Send your sample data using 'dput/dump' next time -- easier to read in: > x <- read.table(text = "License Species Year HD QuotaL.R.QTA > L.R.QTASuccess Surplus + PermitElk1999101 50 87 90 151 10 + P

[R] Summing Data in R

2011-12-27 Thread steven.hazen
Currently I have a data set looking like: License Species Year HD QuotaL.R.QTAL.R.QTASuccess Surplus PermitElk1999101 50 87 90 151 10 PermitDeer1999101 50 20