Re: [R] Weighting column entries in a data frame

2009-06-24 Thread camillus
> 6 ALASKA 23 10.101300 539 1.199971 >> > > > On Tue, Jun 23, 2009 at 3:11 PM, camillus > wrote: > >> >> Hi Guys, >> >> I would like to weight column entries in a data frame by the population >> of >> each state. For exam

[R] Weighting column entries in a data frame

2009-06-23 Thread camillus
Hi Guys, I would like to weight column entries in a data frame by the population of each state. For example, here is some data: state statenum year incomepopul ALABAMA11 9.703193 3973.00 ALABAMA12 9.745950 3992.00 ALABAMA13 9.76209