powered by
keeps some rows in the dataset and drops the rest
keepif(x)
a condition like: "var1==2" in which case observations that satisfy the condition are kept and all others are removed.
returns NULL, invisibly
# NOT RUN { use(cars, clear=TRUE) keepif("speed <= 20") listif() # }
Run the code above in your browser using DataLab