Returns the number of x/y items (e.g. molecules or cells) stored in a STGrid object.

# S4 method for STGrid
nb_items(x)

Arguments

x

The STGrid object

Examples

example_dataset()
#> |-- INFO :  Dataset 11284233/files/Xenium_Mouse_Brain_Coronal_7g was already loaded. 
nb_items(Xenium_Mouse_Brain_Coronal_7g)
#> [1] 152958