Try this: x1[!apply(x1 == t(x2), 1, any),]
On Sat, Jan 22, 2011 at 6:35 PM, Shai & Rivka Uliel <sh...@netvision.net.il>wrote: > Hi > > > ihave one table that look like > > SNP1 SNP2 SNP3 SNP4 SNP5 > SIRE1 1 -1 -1 1 -1 > SIRE2 1 -1 1 1 1 > SIRE3 -1 -1 1 1 0 > SIRE4 -1 1 1 0 1 > SIRE5 -1 1 -1 -1 1 > SIRE6 0 0 0 1 -1 > SIRE7 -1 0 -1 1 1 > SIRE8 1 -1 NA 0 NA > SIRE9 -1 1 1 -1 -1 > SIRE10 1 1 1 1 1 > > > > table 2 only one line > > > > SNP1 SNP2 SNP3 SNP4 SNP5 > SIRE100 -1 -1 1 1 -1 > > > > > i need to make table3 from table 1 but only the lines that not the same in > table2 > > so snp1 !< -1 > snp2 !< -1 > snp3 !<1 > snp4 !< 1 > snp5 !< -1 > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ 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.