Message-ID: <CAEHuMtuKZ-z7-k0iAPQtRknPeoBKwagYkgYLHHYLEtjJmPBjfA@mail.gmail.com>
Date: 2012-11-12T14:36:13Z
From: Clemontina Davenport
Subject: Multiplying elements of a list by rows of a matrix
In-Reply-To: <1352728891.79523.YahooMailNeo@web142602.mail.bf1.yahoo.com>
Thank you all for your responses, the lapply works perfectly. The
example I gave IS odd. I only realized after I posted that tt had 5
rows and should have only had 3, so I apologize for that (I initially
had X to have 5 list elements).
Bert, I tend to use for loops in excess and often unnecessarily, so I
am trying to learn to code without the mental crutch that for loops
solve all problems.
Thanks again,
Tina