is_sfnetwork: Check if an object is a sfnetwork

View source: R/checks.R

is_sfnetworkR Documentation

Check if an object is a sfnetwork

Description

Check if an object is a sfnetwork

Usage

is_sfnetwork(x)

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))


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.