Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

deleteVariables

Delete Variables Within a Dataset


Description

This function permanently deletes a variable from a dataset.

Usage

deleteVariables(dataset, variables)

deleteVariable(dataset, variables)

Arguments

dataset

the Dataset to modify

variables

aliases (following crunch.namekey.dataset) or indices of variables to delete.

Details

In an interactive session, you will be prompted to confirm that you wish to delete the variable. To avoid that prompt, or to delete variables from a non-interactive session, wrap the call in with_consent() to give your permission to delete.

Value

(invisibly) dataset with the specified variables deleted

See Also

delete(); deleteSubvariable(); For a non-destructive alternative, see hide().


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.