Combine different layers of an entity, and similar entities
combineLayer.RdCombine different layers of an entity, and similar entities
Usage
combineLayers(rezrObj, entity, type = "intersect")
combineChunks(rezrObj, ...)
combineTokenChunk(rezrObj, type = "intersect")Arguments
- rezrObj
A
rezrObjobject- entity
The Rezonator entity with multiple layers (e.g. track, rez, chunk) that you want to combine
- type
The type of combination. If 'intersect', I will take the intersection of the columns in the
rezrDFs. If 'union', I will take the union of the columns, populating missing fields withNAs.- ...
The
rezrDFobjects to be combined
Note
This is mainly used when you need to draw information from more than one rezrDF for the purpose of functions like addFieldForeign or rez_left_join.
Examples
combineLayers(sbc007, "chunk", type = "intersect")
#> # A tibble: 196 × 23
#> id doc name nest kind place text trans…¹ endNote order negPl…²
#> <chr> <chr> <chr> <dbl> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 35E3E0AB68… sbc0… Chun… 2 "" "" Stay… Stay u… "" "" ""
#> 2 1F6B5F0B3F… sbc0… Chun… 3 "" "" the … the pu… "" "" ""
#> 3 24FE2B219B… sbc0… Chun… 2 "" "" gett… gettin… "" "" ""
#> 4 158B579C1B… sbc0… Chun… 1 "" "" the … the mo… "" "" ""
#> 5 2B6521E881… sbc0… Chun… 1 "" "" all … all th… "" "" ""
#> 6 5B854594DD… sbc0… Chun… 2 "" "" the … the wa… "" "" ""
#> 7 189552EBB1… sbc0… Chun… 2 "" "" the … the on… "" "" ""
#> 8 313D141E6D… sbc0… Chun… 1 "" "" the … the ho… "" "" ""
#> 9 1E970FF5D9… sbc0… Chun… 1 "" "" all … all th… "" "" ""
#> 10 85C4F230E6… sbc0… Chun… 2 "" "" what… what t… "" "" ""
#> # … with 186 more rows, 12 more variables: corpusSeq <chr>, pSentOrder <chr>,
#> # POS_dft <chr>, tokenSeq <chr>, chunkType <chr>, turnOrder <chr>,
#> # largerChunk <chr>, tokenOrderFirst <dbl>, docTokenSeqFirst <dbl>,
#> # tokenOrderLast <dbl>, docTokenSeqLast <dbl>, layer <chr>, and abbreviated
#> # variable names ¹transcript, ²negPlace
#> # ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names