Displaying 2 results from an estimated 2 matches for "suddenpressuredrop".
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
...t; I can't be more accurate because i'm unable to formulate it an other way.
>
> another example:
>
> I've got a set of colnames :
>
> > nomalarme1
> [1] "AirFlowFailure" "AirSensorFailure" "GasLeek"
> [4] "SuddenPressureDrop" "InletPressureToLow" "PressureRiseFailure"
> [7] "HoseLeakTestFailure" "o50DCVoltageToLow"
>
> All of these names identify colnames (like AirFlowFailure).
>
> My problem is if i do
>
> For (i in 1:length(nomalarme1))
&...