Learn R Programming

naryn (version 2.6.30)

emr_track.var.ls: Returns a list of track variables for a track

Description

Returns a list of track variables for a track.

Usage

emr_track.var.ls(
  track,
  pattern = "",
  ignore.case = FALSE,
  perl = FALSE,
  fixed = FALSE,
  useBytes = FALSE
)

Value

An array that contains the names of track variables.

Arguments

track

track name

pattern, ignore.case, perl, fixed, useBytes

see 'grep'

Details

This function returns a list of track variables of a track that match the pattern (see 'grep'). If called without any arguments all track variables of a track are returned.

Overriding a track also overrides it's track variables, the variables will persist when the track is no longer overridden

See Also

grep, emr_track.var.get, emr_track.var.set, emr_track.var.rm

Examples

Run this code

emr_db.init_examples()
emr_track.var.ls("sparse_track")
emr_track.var.set("sparse_track", "test_var1", 1:10)
emr_track.var.set("sparse_track", "test_var2", "v")
emr_track.var.ls("sparse_track")
emr_track.var.ls("sparse_track", pattern = "2")
emr_track.var.rm("sparse_track", "test_var1")
emr_track.var.rm("sparse_track", "test_var2")

Run the code above in your browser using DataLab