Skip to content
Prev 366849 / 398502 Next

lines those not started with "rs"

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: