Hi, If it is to get the first 18 genes (based on rownumbers) dat1<- read.table("apcall.txt",header=TRUE,sep="",stringsAsFactors=FALSE) dat1[1:18,]
#or dat1[as.numeric(rownames(dat1))<19,] A.K. >The row numbers represent 7129 different genes >The 38 columns represent 38 different patients >How can I find the genes with A number < 19 in these 7129 genes? >I have searched and tried for 7 hours but still can not find the way to solve apcall.txt ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.