# \dontshow{
options(gmax.processes = 2)
# }
gdb.init_examples()
## Creates a new track that is a sum of values from 'dense' and
## 2 * non-nan values of 'sparse' track. The new track type is
## Dense with a bin size that equals to '70'.
gtrack.create("mixed_track", "Test track",
"dense_track +
replace(sparse_track, is.nan(sparse_track), 0) * 2",
iterator = 70
)
gtrack.info("mixed_track")
gtrack.rm("mixed_track", force = TRUE)
Run the code above in your browser using DataLab