[R] lines those not started with "rs"
mak.hholly at gmail.com
Mon Jan 30 15:44:50 CET 2017
I do appreciate your advice. Only the first column of the data is text. The
rest columns are numeric.
On Mon, Jan 30, 2017 at 9:36 AM, Robert Sherry <rsherry8 at comcast.net> wrote:
> I am assuming that your data is in a text file. R is a good tool but not
> the tool I would use for this job. The tool I would
> use is grep. The following command should get you want you want:
> grep -v "^rs" <data file name>
> On 1/30/2017 9:23 AM, greg holly wrote:
>> Hi all;
>> I have a file which has about 3.000.000 lines. Most of the lines at first
>> column start with "rs", for example, rs10000056, rs10000076 and so on. I
>> would like to get the lines which do not start with "rs" . Your helps
>> highly appreciated.
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> PLEASE do read the posting guide http://www.R-project.org/posti
>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posti
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help