search for: plac2

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

Did you mean: place
2011 Nov 03
2
optimising a loop
Dear R community, I'm trying to remove a loop from my code but I'm stock and I can't find a good way to do it. Hopefully one of you will have something clever to propose. Here is a simplified example: I have a squared matrix: > nom.plac2 <- c("102", "103", "301", "303","304", "403") > poids2 <- matrix(NA, 6,6, dimnames=list(nom.plac2,nom.plac2)) > poids2 102 103 301 303 304 403 102 NA NA NA NA NA NA 103 NA NA NA NA NA NA 301 NA NA NA NA NA...