[R] If then test

claytonmccandless claytonmccandless at msn.com
Thu Jan 28 06:21:40 CET 2010


i have a simple question. If i have a 2x2 matrix with [,1] and [,2] i want to
test each of these to see if they are below some number. If each component
in column is below the number then it returns a 1. Now from this result I
would like to add the number of 1's that came up. How can i do this?
-- 
View this message in context: http://n4.nabble.com/If-then-test-tp1322119p1322119.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list