Displaying 2 results from an estimated 2 matches for "nomalarme".
Did you mean:
nomalarme1
2006 May 16
1
variable row names
Hy all,
I wish to use a variable as rownames for a set of datas.
By example :
> nom<-"toto"
> prenom<-"tutu"
> res<-c(1,2)
> res<-t(res)
> res
[,1] [,2]
[1,] 1 2
> colnames(res)<-c(nom,prenom)
> res
toto tutu
[1,] 1 2
> nom
[1] "toto"
>
I wish to call the rowname by the
2006 May 17
0
variable colnames
...ut spaces or numbers)
By example if the error name is "InletPressureToLow" the colnames will be
"Nom_InletPressureToLow"
"Cpt_InletPressureToLow"
...
So i'm forging the colnames, and once i've done that i'm unable to access them again if i do like that (nomalarme1 contain errors names without number and spaces):
For (i in 1:length(nomalarme1))
nom_nom=paste("nom_",nomalarme1[i],sep="")
nom_cpt=paste("cpt_",nomalarme1[i],sep="")
nom_tfth=paste("tfth_",nomalarme1[i],sep="")
nom_ftm=paste("ftm_&...