[R] selecting the COLUMNS in a dataframe function of the numerical values in a ROW

Bogdan Tanasa t@n@@@ @end|ng |rom gm@||@com
Fri Nov 2 01:45:44 CET 2018


Dear all, please may I ask for a suggestion :

considering a dataframe  that contains the numerical values for gene
expression, for example :

 x = data.frame(TTT=c(0,1,0,0),
               TTA=c(0,1,1,0),
               ATA=c(1,0,0,0),
               gene=c("gene1", "gene2", "gene3", "gene4"))

how could I select only the COLUMNS where the value of a GENE (a ROW) is
non-zero ?

thank you !

-- bogdan

	[[alternative HTML version deleted]]




More information about the R-help mailing list