emr_track.logical.create {naryn}R Documentation

Creates a logical track

Description

Creates a logical track

Usage

emr_track.logical.create(track, src, values = NULL)

Arguments

track

one or more names of the newly created logical tracks.

src

name of the physical tracks for each logical track

values

vector of selected values. When creating multiple logical tracks at once - values should be a list of vectors (with one vector of values for each logical track).

Details

This function creates a logical track based on an existing categorical track in the global space.

Note: Both the logical track and source should be on the global db. If the logical track would be created and afterwards the db would be loaded as non-global db the logical tracks would **not** be visible.

Value

None.

Examples


emr_track.logical.create("logical_track_example", "categorical_track", values = c(2, 3))

# multiple tracks
emr_track.logical.create(
    c("logical_track1", "logical_track2", "logical_track3"),
    rep("categorical_track", 3),
    values = list(c(2, 3), NULL, c(1, 4))
)



[Package naryn version 2.6.26 Index]