[R] A couple of little R things I can't figure out (column percents, regression with lagged variables)

Jason Turner jasont at indigoindustrial.co.nz
Tue Feb 12 12:58:21 CET 2002


After the good observations on "prop.table" as an answer
to Paul Johnson's first problem, and comparing it to my
much less elegant solution....

----- Forwarded message from Jason Turner <jasont at indigoindustrial.co.nz> -----
Date: Tue, 12 Feb 2002 22:38:12 +1300
From: Jason Turner <jasont at indigoindustrial.co.nz>
To: Paul Johnson <pauljohn at ku.edu>
Subject: Re: [R] A couple of little R things I can't figure out (column percents, regression with lagged variables)

...
apply(hmm,2,function(zz){zz/sum(zz)}) * 100
...
----- End forwarded message -----

It's my new invention.  I call it "The Wheel".
Off to the patent office ;)

Jason
who can see that the existing wheel is much better than
his, and thinks R is very, very good.  Take a bow,
R-core.
-- 
Indigo Industrial Controls Ltd.
64-21-343-545
jasont at indigoindustrial.co.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list