make_importance: Subset strength data from a graph

Description Usage Arguments Value Examples

View source: R/term_selection.R

Description

Selects only the node strength data from a graph.

Usage

1
make_importance(graph, imp_method = "strength")

Arguments

graph

an igraph graph

imp_method

a character specifying the importance measurement to be used; takes arguments of "strength", "eigencentrality", "alpha", "betweenness", "hub" or "power"

Value

a data frame of node strengths, ranks, and names

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
dfm <- create_dfm(
  elements = c(
    "Cross-scale occupancy dynamics of a postfire specialist
    in response to variation across a fire regime",
    "Variation in home-range size of Black-backed Woodpeckers",
    "Black-backed woodpecker occupancy in burned and beetle-killed forests"
  ),
  features = c("occupancy", "variation", "black-backed woodpecker", "burn")
)

my_network <- create_network(search_dfm = as.matrix(dfm),
                             min_studies = 1,
                             min_occ = 1)

make_importance(my_network, imp_method = "strength")

elizagrames/litsearchr documentation built on April 14, 2021, 3:42 p.m.