Hi > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Evan Sticca > Sent: Friday, September 13, 2013 6:48 PM > To: r-help@r-project.org > Subject: [R] Splitting data into two camps > > Hello R-help, > > I have recently generated some meta-data on SNP variation across whole > exomes and I need to begin sorting it into two camps: one in which the > alternate allele matches the derived form and one where the alternate > allele matches the ancestral form. I have the data saved as a .txt file > from its original VCF format. I am a novice at writing my own functions > in R, so any help would greatly be appreciated.
See ?read.table and other read functions. And if you start to read help pages I strongly recommend to read also 1. Posting guide 2. R intro 3. R data or at least some parts of it. It prevents you from great frustration if you are used to Excel or other similar pieces of software and consider R as another one. Regards Petr > > Thank you, > Evan Sticca > > [[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.