emr_vtrack.name {naryn}R Documentation

Generate a default name for a virtual track

Description

Given virtual track parameters, generate a name with the following format: "vt_(src).func_(func).params_(params).kr(keepref).ts_(time.shift).id_(id.map).filter_(filter)" Where for 'params', 'time.shift', and 'id.map', the values are separated by an underscore.

Usage

emr_vtrack.name(
  src,
  func = NULL,
  params = NULL,
  keepref = FALSE,
  time.shift = NULL,
  id.map = NULL,
  filter = NULL
)

Arguments

src

a character vector specifying the source dataset(s) or filter(s) that the virtual track is based on

func

a character vector specifying the function(s) applied to the source data to generate the virtual track

params

a named list specifying the parameters used by the function(s) to generate the virtual track

keepref

a logical value indicating whether the virtual track should keep the reference column(s) of the source data

time.shift

a numeric vector specifying the time shift(s) applied to the virtual track

id.map

a named list specifying the mapping of the IDs between the source data and the virtual track

filter

a character vector specifying the filter(s) applied to the virtual track. Note that the filter name cannot contain the character '.'

Details

If func, params, time.shift, id.map, or filter are NULL - their section would not appear in the generated name.

Value

a default name for the virtual track

See Also

emr_vtrack.create

Examples


emr_db.init_examples()
emr_vtrack.name("dense_track",
    time.shift = 1,
    func = "max"
)


[Package naryn version 2.6.26 Index]