[R] summing vectors/matrices
Bert Gunter
gunter.berton at gene.com
Thu Apr 4 16:47:33 CEST 2013
Nicolas:
Start by Helping yourself. Read the docs -- e.g. the "Introduction to
R tutorial that ships with R, or one or more of the many that you can
find on the Web.
-- Bert
On Thu, Apr 4, 2013 at 6:17 AM, Nicolas L. Gutierrez <nicolasg at uw.edu> wrote:
> Hi All,
>
> I have a large dataset I need to re-structure. It looks something like this:
>
>
> YearAreaQBinFD20001150200011101200011152320001120122000112512000215120002110
> 6200021151120002120132000212532000125020001210120001215232000122012200012251
> 20002251200022103200022151220002220132000222532001…2011
>
> And I need to create different vectors (Bin, FD) summing by year and/or by
> area; For example, I need a new dataset:
> Bin, FD[Year=2000,Area=1], FD[Year=2000,Area=2], FD[Year=2000],
> FD[Year=2001,Area=1], etc.
> Any help really appreciated!!
> NG
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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