check_network_sf {netmap}R Documentation

Internal checks before ggnetmap and ggcentrality

Description

Checks whether the proper packages are installed, whether the parameters are of the proper classes, whether the network-map link is possible, then performs the link.

Usage

check_network_sf(n, m, lkp = NULL, m_name = NULL, n_name = "vertex.names")

Arguments

n

A network or igraph object.

m

A sf object.

lkp

An optional lookup table.

m_name

Optional character, name of field in m and of column in lkp.

n_name

Optional character, name of vertex attribute in n and of column in lkp.

Value

A list with a network or igraph object with only the vertices present in the sf object as the first element and a list with two vectors, one of features in m present both in the lookup table and in n, the other of nodes in n present both in the lookup table and in m


[Package netmap version 0.1.4 Index]