rename_bundles: Rename bundles in emuDB

View source: R/emuR-database.R

rename_bundlesR Documentation

Rename bundles in emuDB

Description

Rename bundles of emuDB.

Usage

rename_bundles(emuDBhandle, bundles)

Arguments

emuDBhandle

emuDB handle as returned by load_emuDB

bundles

data.frame like object with the columns

  • session: name of sessions containing bundle

  • name: name of bundle

  • name_new: new name given to bundle

It is worth noting that session and name are the columns returned by list_bundles.

Examples

## Not run: 

##################################
# prerequisite: loaded ae emuDB
# (see ?load_emuDB for more information)

# list bundles of session "0000" of ae emuDB
bundles = list_bundles(emuDBhandle = ae,
                       session = "0000")

# append "XXX" to bundle names and rename
bundles$name_new = paste0(bundles$name, "XXX")
rename_bundles(emuDBhandle, bundles)

## End(Not run)


emuR documentation built on Nov. 4, 2023, 1:06 a.m.