Hello,

My problem is quite simply, but I didn't find any solution...

I have a vector :

> truc
   longueur30 longueur40 longueur50 longueur60 longueur70 longueur80
longueur90
34      FALSE      FALSE      FALSE      FALSE       TRUE      FALSE
FALSE

I would like to have the name of the column where there is "TRUE".

> colnames(truc)
[1] "longueur30" "longueur40" "longueur50" "longueur60" "longueur70"
[6] "longueur80" "longueur90"

> truc[truc == T]
[1] TRUE

> colnames(truc[truc == T])
NULL

How can I do it ?

Thank you for your help.

-- 
David

	[[alternative HTML version deleted]]

