Learn R Programming

crunch (version 1.30.4)

folder: Find and move entities to a new folder

Description

Find and move entities to a new folder

Usage

folder(x)

folder(x) <- value

Value

folder returns the parent folder of x, or NULL if the x is the root level. folder<- returns the x input, having been moved to the requested location.

Arguments

x

For folder, a Variable to find. For folder assignment, a Variable, selection of variables in a Dataset, or any other object that can be moved to a folder.

value

For assignment, a character "path" to the folder: either a vector of nested folder names or a single string with nested folders separated by a delimiter ("/" default)

See Also

mv() cd()

Examples

Run this code
if (FALSE) {
ds <- loadDataset("Example survey")
folder(ds$income) <- "Demographics/Economic"
folder(ds$income)
## [1] "Demographics"    "Economic"
}

Run the code above in your browser using DataLab