get_top_coord_shares: get_top_coord_shares

Description Usage Arguments Value Examples

View source: R/get_top_coord_shares.R

Description

A function to get the top n posts by engagement containing URLs shared in a coordinated way

Usage

1
2
3
4
5
6
get_top_coord_shares(
  output,
  order_by = "engagement",
  component = TRUE,
  top = 10
)

Arguments

output

the output list resulting from the function get_coord_shares

order_by

name of the column used to order the top shares. Default to "engagement". Other possible values are: "statistics.actual.likeCount", "statistics.actual.shareCount", "statistics.actual.commentCount", "statistics.actual.loveCount", "statistics.actual.wowCount", "statistics.actual.hahaCount", "statistics.actual.sadCount","statistics.actual.angryCount"

component

return the top posts grouped by network component (TRUE, default) or just the top posts by engagement (FALSE)

top

number of the top shares to be retrieved

Value

A data frame (grouped_df) containing the posts with the highest engagement shared in a coordinated way by the highly coordinated entities, with a set of attributes

Examples

1
2
3
4
5
  # get the top ten posts containing URLs shared by each network component and by engagement
  df <- get_top_news(output, order_by = "engagement", top=10)

  # get the top ten posts containing URLs shared in a coordinated way, by engagement
  df <- get_top_news(output, order_by = "engagement", top=10)

LeonardoSaracino/CooRnet_projectSNA documentation built on Dec. 18, 2021, 4:33 a.m.