Learn R Programming

emuR (version 2.5.0)

rename_bundles: 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

Run this code
if (FALSE) {

##################################
# 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)
}

Run the code above in your browser using DataLab