Skip to contents

row bind two objects

Usage

# S4 method for class 'cellMetaObj,cellMetaObj'
rbind2(x, y, ...)

# S4 method for class 'featMetaObj,featMetaObj'
rbind2(x, y, ...)

# S4 method for class 'spatLocsObj,spatLocsObj'
rbind2(x, y, ...)

# S4 method for class 'giottoPolygon,giottoPolygon'
rbind2(x, y, add_list_ID = TRUE, ...)

Arguments

x

item 1 to rbind

y

item 2 to rbind

...

additional params to pass to methods

add_list_ID

whether to generate a list_ID column when giottoPolygons to append have different names

Value

object with appended rows

Functions

  • rbind2(x = giottoPolygon, y = giottoPolygon): Append giottoPolygon objects

Examples

g <- GiottoData::loadSubObjectMini("giottoPolygon")

rbind2(g, g)
#> An object of class giottoPolygon
#> spat_unit : "aggregate"
#> Spatial Information:
#>  class       : SpatVector 
#>  geometry    : polygons 
#>  dimensions  : 924, 4  (geometries, attributes)
#>  extent      : 6391.466, 6903.573, -5153.897, -4694.868  (xmin, xmax, ymin, ymax)
#>  coord. ref. :  
#>  names       :                   poly_ID stack agg_n valid
#>  type        :                     <chr> <chr> <int> <int>
#>  values      : 100210519278873141813371~    NA     2     1
#>                101161259912191124732236~    NA     2     1
#>                101488859781016188084173~    NA     2     1
#>  centroids   : calculated
#>  overlaps    :