Re-bin a STGrid object.

# S4 method for STGrid
re_bin(object, bin_size, verbose = TRUE)

Arguments

object

The STGrid object.

bin_size

The size of the bin.

verbose

Whether to be display progress bar.

Examples

example_dataset()
res <- re_bin(Xenium_Mouse_Brain_Coronal_7g, bin_size=10)
#> 
  |                                                        
  |                                                  |   0%
  |                                                        
  |=======                                           |  14%
  |                                                        
  |==============                                    |  29%
  |                                                        
  |=====================                             |  43%
  |                                                        
  |=============================                     |  57%
  |                                                        
  |====================================              |  71%
  |                                                        
  |===========================================       |  86%
  |                                                        
  |==================================================| 100%
#>