Deephaven UpdateByOps
UpdateByOp.Rd
An UpdateByOp
is the return type of one of Deephaven's uby
functions. It is a function that performs
the computation specified by the uby
function. These are intended to be passed directly to update_by()
,
and should never be instantiated directly be user code. For more information, see the vignette on
uby
functions with vignette("update_by")
.
If multiple tables have the same schema and the same UpdateBy operations need to be applied to each table, saving these objects directly in a variable may be useful to avoid having to re-create them each time:
c(uby_rolling_avg_tick("XAvg = X", "YAvg = Y"),
operations <-uby_rolling_std_tick("XStd = X", "YStd = Y"))
th1$update_by(operations, by="Group")
result1 <- th2$update_by(operations, by="Group") result2 <-
In this example, operations
would be a vector of two UpdateByOp
s that can be reused in multiple calls to update_by()
.