Merge splices together using set operations
merge_splice.Rd
Merge splices together using set operations
See also
Other splicing functions:
clip_splice()
,
get_spliced_view()
,
is_splice_overlapping()
,
splice_time.Duration()
,
splice_time.Metre()
,
splice_time.OnsetsDifference()
,
splice_time.View()
,
splice_time.list()
,
splice_time()
,
split.SplicedView()
Examples
l1 <- list(a1 = c(100, 200), a2 = c(250, 300), a3 = c(400, 550), a4 = c(600, 650))
split1_dfr <- splice_time(l1)
split1_dfr
#> Segment Start End
#> 1 a1 100 200
#> 2 a2 250 300
#> 3 a3 400 550
#> 4 a4 600 650
l2 <- list(b1 = c(150, 275), b2 = c(610, 640))
split2_dfr <- splice_time(l2)
split2_dfr
#> Segment Start End
#> 1 b1 150 275
#> 2 b2 610 640
l3 <- list(c1 = c(275, 325), c2 = c(600, 675), c3 = c(700, 725))
split3_dfr <- splice_time(l3)
split3_dfr
#> Segment Start End
#> 1 c1 275 325
#> 2 c2 600 675
#> 3 c3 700 725
merge_splice(x = split1_dfr, y = split2_dfr, z = split3_dfr, operation = 'union')
#> Segment Start End
#> 1 x | y | z 100 325
#> 2 x | y | z.1 400 550
#> 3 x | y | z.2 600 675
#> 4 x | y | z.3 700 725
merge_splice(x = split1_dfr, y = split2_dfr, z = split3_dfr, operation = 'intersection')
#> Segment Start End
#> 1 x & y & z 610 640