search for: tp2996706p2997060

Displaying 1 result from an estimated 1 matches for "tp2996706p2997060".

Did you mean: tp2996706p2996706
2010 Oct 15
3
Create Arrays
Hi, For this example: O <- c(0 0 0 2 0 0 2 0) I want to create an array every time O[i] > 0. The array should be in the form; R[j] <- array(-1, dim=c(2,O[i])) i.e. if O[i] > 0 4 times I want 4 R arrays. Does anyone have any suggestions? Thanks, Doug -- View this message in context: http://r.789695.n4.nabble.com/Create-Arrays-tp2996706p2996706.html Sent from the R help