See the setdiff() function -- Don MacQueen
Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 5/23/13 11:04 AM, "Robin Mjelle" <robinmje...@gmail.com> wrote: >I have two files containing words. I want to print the are in file 1 but >NOT in file 2. >How do I go about? > >file 1: > ABL1 >1 ALKBH1 >2 ALKBH2 >3 ALKBH3 >4 ANKRD17 >5 APEX1 >6 APEX2 >7 APTX >8 ASF1A >9 ASTE1 >10 ATM >11 ATR >12 ATRIP >13 ATRX >14 ATXN3 >15 BCCIP >16 BLM >17 BRCA1 >18 BRCA2 > > >file2: > ALKBH2 >1 ALKBH3 >2 APEX1 >3 APEX2 >4 APLF >5 APTX >6 ATM >7 ATR >8 ATRIP >9 BLM >10 BRCA1 >11 BRCA2 >12 BRIP1 >13 BTBD12 >14 CCNH > > [[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. ______________________________________________ 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.