get_top_coord_urls: get_top_coord_urls

View source: R/get_top_coord_urls.R

get_top_coord_urlsR Documentation

get_top_coord_urls

Description

A function to get the top n URLs shared in a coordinated way

Usage

get_top_coord_urls(
  output,
  order_by = "engagement",
  group_by = "components",
  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 news. 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"

group_by

return the top URLs by components, clusters or none (component, default)

top

number of the top URLs to be retrieved

Value

A data frame (grouped_df) containing the top URLs shared in a coordinated way by the highly coordinated entities, with shares and engagement statistics, list of entities and components that shared the link

Examples

# get the top ten URLs shared in a coordinated way by each network component, by engagement
df <- get_top_coord_urls(output, order_by = "engagement", component = TRUE, top=10)

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


fabiogiglietto/CooRnet documentation built on Aug. 15, 2024, 7:16 p.m.