Learn R Programming

genvar (version 0.0.2.0)

keepvar: keeps some variables in the dataset and drops the others

Description

keeps some variables in the dataset and drops the others

Usage

keepvar(x)

Arguments

x

a varlist either of the form "var1 var2 var3" or, if a single variable, it can be unquoted.

Value

returns NULL, invisibly

Examples

Run this code
# NOT RUN {
use(cars, clear=TRUE)
keepvar(speed)
listif()
# }

Run the code above in your browser using DataLab