powered by
keeps some variables in the dataset and drops the others
keepvar(x)
a varlist either of the form "var1 var2 var3" or, if a single variable, it can be unquoted.
returns NULL, invisibly
# NOT RUN { use(cars, clear=TRUE) keepvar(speed) listif() # }
Run the code above in your browser using DataLab