how to call a function for each row
Homework. ? I would say that this indiicates that you need to open the R tutorials and start reading. -- Bert
On Wed, Nov 30, 2011 at 5:10 AM, arunkumar1111 <akpbond007 at gmail.com> wrote:
Hi ?I have ?a data-frame which look like this X1 X2 X3 1 ? 3 ?5 2 ? 4 ?6 3 ? 6 ?1 I want to apply a formula Y=6*X1 + 7*X2 + 8*X3 ?for every row Thanks in Advance -- View this message in context: http://r.789695.n4.nabble.com/how-to-call-a-function-for-each-row-tp4122906p4122906.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ 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