[R] lines those not started with "rs"
Rui Barradas
ruipbarradas at sapo.pt
Mon Jan 30 17:59:02 CET 2017
Hello,
Try to study the following example.
A <- c("rs10000056", "rs10000076", "ab1234567")
x <- 1:3
dat <- data.frame(A, x)
inx <- grepl("^rs", dat$A)
dat[!inx, ]
Hope this helps,
Rui Barradas
Em 30-01-2017 14:23, greg holly escreveu:
> 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.
>
> Regards,
>
> Greg
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
More information about the R-help
mailing list