[R] lines those not started with "rs"
ruipbarradas at sapo.pt
Mon Jan 30 17:59:02 CET 2017
Try to study the following example.
A <- c("rs10000056", "rs10000076", "ab1234567")
x <- 1:3
dat <- data.frame(A, x)
inx <- grepl("^rs", dat$A)
Hope this helps,
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.
> [[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/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help