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.
______________________________________________ R-help@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.