Message-ID: <19549904.post@talk.nabble.com>
Date: 2008-09-18T10:25:59Z
From: Ralikwen
Subject: using for variable as rowname
In-Reply-To: <19533203.post@talk.nabble.com>
Thanks for your help,
I didn't know where you can or can't use a for variable.
Seems that I have to use rownames to do this anyway, so finally I went for a
more procedural solution:
v=1:6
for (a in 1:3){
for (b in 4:5) {
v<-rbind(v,1+a+b:6+a+b)
rownames(v)[nrow(v)]= paste(a,b,sep=".")
}
}
Ralikwen wrote:
>
> Is there a way to use the cycle variable for rowname?
>
Thanks again.
Bal?zs
--
View this message in context: http://www.nabble.com/using-for-variable-as-rowname-tp19533203p19549904.html
Sent from the R help mailing list archive at Nabble.com.