Generate a default name for a naryn filter

emr_filter.name(
  src,
  keepref = FALSE,
  time.shift = NULL,
  val = NULL,
  expiration = NULL,
  operator = "="
)

Arguments

src

source (track name, virtual track name or id-time table). Can be a vector of track names.

keepref

'TRUE' or 'FALSE'

time.shift

time shift and expansion for iterator time

val

selected values

expiration

expiration period

operator

operator for filtering. Accepts one of: "=", "<", "<=", ">", ">="

Value

a default name for the filter

Details

Given filter parameters, generate a name with the following format: "f_src.krkeepref.vals_val.ts_time.shift.exp_expiration.op_operator" Where for 'val' and 'time.shift' the values are separated by an underscore.

If time.shift, val or expiration are NULL - their section would not appear in the generated name.

Examples


emr_db.init_examples()
#> NULL
emr_filter.name("dense_track", time.shift = c(2, 4))
#> [1] "f_dense_track.krF.ts_2_4"