Does a node attribute exist?
node_attr_exists(.net, .node_attr)
.net | network of class |
---|---|
.node_attr |
|
logical
scalar
node_attr_exists(.net = florence_business_ig, .node_attr = "wealth")#> [1] TRUEflorence_business_nw %>% node_attr_exists(.node_attr = "priors")#> [1] TRUEflorence_business_ig %>% node_attr_exists(.node_attr = "fake attr")#> [1] FALSE