Skip to contents

Returns the number of coordinates, for a single shape or a Coo object

Usage

coo_nb(coo)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

Value

either a single numeric or a vector of numeric

Examples

# single shape
coo_nb(bot[1])
#> [1] 138
# Coo object
coo_nb(bot)
#>         brahma          caney         chimay         corona    deusventrue 
#>            138            168            189            129            152 
#>          duvel   franziskaner     grimbergen        guiness     hoegardeen 
#>            161            124            126            183            193 
#>        jupiler     kingfisher       latrappe lindemanskriek    nicechouffe 
#>            156            182            136            176            146 
#>     pecheresse   sierranevada     tanglefoot          tauro      westmalle 
#>            129            176            174            174            141 
#>          amrut    ballantines      bushmills         chivas        dalmore 
#>            191            146            165            164            155 
#>   famousgrouse    glendronach   glenmorangie   highlandpark    jackdaniels 
#>            169            197            179            169            150 
#>             jb  johnniewalker       magallan     makersmark           oban 
#>            174            168            141            177            179 
#>     oldpotrero      redbreast         tamdhu     wildturkey         yoichi 
#>            131            177            176            185            123