Skip to content
Prev 308635 / 398506 Next

Remove records from a large dataframe

Hello,

If I understand it well,

idx <- !dat$id %in% bad$id
dat[idx, ]


Also, to create bad you are complicating, this would do:

bad <- data.frame(id = c(1,4))

Hope this helps,

Rui Barradas
Em 22-10-2012 12:04, penguins escreveu: