Skip to content
Prev 156264 / 398506 Next

using for variable as rowname

and
Not pretty, but this does the trick.

v=1:6
nam <- "?"
for (a in 1:3){
   for  (b in 4:5) {
      v <- rbind(v,1)
      nam <- c(nam, paste(a,b,sep="."))
   }
}
rownames(v) <- nam
v

Regards,
Richie.

Mathematical Sciences Unit
HSL


------------------------------------------------------------------------
ATTENTION:

This message contains privileged and confidential inform...{{dropped:20}}