do.you.know: Do you know?

View source: R/centrality.R

do.you.knowR Documentation

Do you know?

Description

Find out how well members of a network knows a group of people. This is very much like degree or strength where you only count connections to people within a selected group.

Usage

## S3 method for class 'you.know'
do(graph, you, people, how.well = 1)

Arguments

graph

a igraph network object created with the elite.network function.

you

a character vector of names present in graph

people

a character vector of names preferably present in graph

how.well

a number that says how weak the weakest considered edge is. Edge weight is considered social distance and there higher is weaker.

Value

a numeric vector with the graph.strength of the individuals named in "you". The graph strength is the sum of weighted edges within the group "people".

See Also

reach, vertex.measures, graph.strength, degree

Examples

library(soc.elite)
data(den)
data(pe13)
graph         <- elite.network(den)
you           <- pe13$Name
people        <- has.tags(den, tags = c("Political party"))
do.you.know(graph, you, people, how.well = 2)

antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.