Snippets has posted 5883 posts at DZone. View Full User Profile
// Replace array values based on their row and column position
// This is an alternative to using for loops to test each position
a <- array(0, dim=c(10, 10))
a[row(a) <= col(a)*2] <- 1
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...