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