link_network_map2 {netmap}R Documentation

Link a network and a map with a lookup table

Description

Checks which vertices of a network object can be represented with features of a sf object with a lookup table.

Usage

link_network_map2(m, n, lkp, m_name = NULL, n_name = NULL)

Arguments

m

Object of class sf.

n

Object of class network or igraph.

lkp

Lookup table, a data.frame.

m_name

Optional character, name of field in m and of column in lkp (first column of lkp is used if NULL).

n_name

Optional character, name of vertex attribute in n and of column in lkp (second column of lkp is used if NULL).

Value

On success 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, -1 on error.


[Package netmap version 0.1.4 Index]