is.sfnetwork: Check if an object is a sfnetwork

View source: R/sfnetwork.R

is.sfnetworkR Documentation

Check if an object is a sfnetwork

Description

Check if an object is a sfnetwork

Usage

is.sfnetwork(x)

Arguments

x

Object to be checked.

Value

TRUE if the given object is an object of class sfnetwork, FALSE otherwise.

Examples

library(tidygraph, quietly = TRUE, warn.conflicts = FALSE)

net = as_sfnetwork(roxel)
is.sfnetwork(net)
is.sfnetwork(as_tbl_graph(net))


sfnetworks documentation built on May 29, 2024, 8:32 a.m.