create_network: Create PM's Network

Description Usage Arguments Value

View source: R/Twitter_networks.R

Description

This function creates ipgraph object based on interactions (retweets, replies, quotes) in tweets file.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
create_network(
  partia,
  poslowie,
  tweets,
  whole_parliament = F,
  include_retweets = T,
  include_replies = T,
  include_quotes = T,
  only_subparty = F
)

Arguments

partia

Name of party (parliament club) which network will be made

poslowie

Dataframe with all PM's twitters and party/subparty affiliations

tweets

Dataframe with tweets data

whole_parliament

Logical indicator if function will create whole parliament network, default set to False

include_retweets

Logical indicator if function will include retweets from tweets file, default set to True

include_replies

Logical indicator if function will include replies from tweets file, default set to True

include_quotes

Logical indicator if function will include quotes from tweets file, default set to True

only_subparty

Logical indicator if partia argument is name of parliament club or party, default set to False

Value

A igraph object representing network


Rascoon/Polminer documentation built on Dec. 31, 2020, 4:23 p.m.