Learn R Programming

sfnetworks (version 0.6.5)

is.sfnetwork: Check if an object is a sfnetwork

Description

Check if an object is a sfnetwork

Usage

is.sfnetwork(x)

Value

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

Arguments

x

Object to be checked.

Examples

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

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

Run the code above in your browser using DataLab