Re: [R] How to best divide table by table

From: Serguei Kaniovski <kaniovsk_at_wsr.ac.at>
Date: Sat 28 Oct 2006 - 07:49:17 GMT


For example,

year X1958 X1973 X1981 X1986 X1995 X2004 X2007 1 QMT 12 41 45 54 62 232 255
2 Belgium 2 5 5 5 5 12 12
3 France 4 10 10 10 10 29 29

year X1958 X1973 X1981 X1986 X1995 X2004 X2007 1 QMT 12 41 45 54 62 232 255
2 Belgium 9054483 9741700 9859000 9859000 10137000 10418000 10497000 3 France 45800391 53294898 55419102 56898199 59418699 62177398 63209000

mat1/mat2 produces

year X1958 X1973 X1981 X1986 X1995 X2004 X2007

1 NA 1.00e+00 1.00e+00 1.00e+00 1.00e+00 1.00e+00 1.00e+00 1.00e+00
2 NA 2.21e-07 5.13e-07 5.07e-07 5.07e-07 4.93e-07 1.15e-06 1.14e-06
3 NA 8.73e-08 1.88e-07 1.80e-07 1.76e-07 1.68e-07 4.66e-07 4.59e-07

with NA in the first column. Serguei



R-help@stat.math.ethz.ch 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. Received on Sat Oct 28 17:56:37 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 28 Oct 2006 - 08:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.