folder: Find and move entities to a new folder

View source: R/folders.R

folderR Documentation

Find and move entities to a new folder

Description

Find and move entities to a new folder

Usage

folder(x)

folder(x) <- value

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)

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.

See Also

mv() cd()

Examples

## Not run: 
ds <- loadDataset("Example survey")
folder(ds$income) <- "Demographics/Economic"
folder(ds$income)
## [1] "Demographics"    "Economic"

## End(Not run)

Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.