channel_analytic: channel_analytic

Description Usage Arguments Value Author(s)

View source: R/channel_analytic.r

Description

Extract many informative stats and object from a set of tweet messages parsed as channel

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
channel_analytic(
  channel_obj,
  use_channel_dates = TRUE,
  start_date = NULL,
  end_date = NULL,
  Ntop = 11,
  Nmin = 25,
  naming = "",
  only_original_tweet = FALSE,
  lowercase = TRUE,
  corpus_lang = "it",
  stopword = TRUE,
  account_tw = "",
  corpus_hashtag = TRUE,
  graph_analisys = FALSE,
  corpus_analisys = FALSE
)

Arguments

channel_obj

data.frame Dataset of tweets.

use_channel_dates

logical Use temporal indication of channel.

start_date

character Date of analisys starting.

end_date

character Date of analisys ending.

Ntop

integer indicate the maximum number for top statistics.

Nmin

integer indicate the minimal data numerosity.

naming

character Indicate which naming framework is adopted. "TAGS","DISIT","rtweet","account_analitics" are names allowed.

only_original_tweet

logical Taking into account only original. Default all tweets are considered.

lowercase

logical Consider all text as lower case. Default is TRUE.

corpus_lang

character language used in Corpora analisys done. Default is "it".

stopword

logical if stopword set to is removed from word frequency matrix. Default italian stopwords of R tm package.

account_tw

character User account if naming parameter is an "account_statistics".

corpus_hashtag

logical Corpus analisys not considering the hashtag.

graph_analisys

Igraph object Graph analisys done. default is FALSE.

corpus_analisys

qDap object wfm for Corpora analisys done. Default is FALSE.

Value

Return a R list object for channel analisys.

channel_stat list: Channel summaries of following parameters.

daily_stat data.frame : Daily channel statistics.

table_message data.frame :Frequency data of messages.

table_hash data.frame : Frequency data hashtags.

table_mentions data.frame : Frequency data of mentions.

table_links data.frame : Frequency data.frame of urls.

table_authors data.frame : Frequency data of authors.

table_authors_retweeter data.frame : Frequency data.frame of authors that are active retweeter.

retweeted_authors data.frame : Frequency of retweeted authors.

favorite_authors data.frame : Frequency data of favorited authors.

favorite_message data.frame : Rank of Favorite messages.

rank_message_retweeted data.frame : Frequency of retweeted message.

top_message data.frame : TopN messages in channel.

top_authors data.frame : TopN authors in channel.

top_hash data.frame : TopN hashtag.

top_mentions data.frame : TopN user mentioned.

top_links data.frame : TopN links.

topfull_authors_retweeter data.frame : TopN author that have retweeted.

topfull_message_retweeted data.frame : TopN message that have retweeted.

graph_retweet igraph object: Simplified Retweet graph.

graph_mentions igraph object: Simplified Mention graph object as igraph R object.

channel_data data.frame: Channel_data used for analisys with other ancillary variables.

channel_corpus wfm object: Corpus of messages without mentions and links and optionally without hashtag.

word_freq_matr qdap wfm object : Word frequency matrix.

account_stats data.frame : Statistic account's activity by date.

Author(s)

Istituto per la Bioeconomia Firenze Italy Alfonso Crisci alfonso.crisci@ibe.cnr.it


alfcrisci/rTwChannel documentation built on March 22, 2020, 6:09 p.m.