- datasource
Collected social media data with "datasource"
and "twitter"
class names.
- type
Character string. Type of network to be created, set to "semantic"
.
- removeRetweets
Logical. Removes detected retweets from the tweet data. Default is TRUE
.
- removeTermsOrHashtags
Character vector. Words or hashtags to remove from the semantic network. For example,
this parameter could be used to remove the search term or hashtag that was used to collect the data by removing any
nodes with matching name. Default is NULL
to remove none.
- stopwords
Logical. Removes stopwords from the tweet data. Default is TRUE
.
- stopwordsLang
Character string. Language of stopwords to use. Refer to the stopwords package for further
information on supported languages. Default is "en"
.
- stopwordsSrc
Character string. Source of stopwords list. Refer to the stopwords package for further
information on supported sources. Default is "smart"
.
- removeNumbers
Logical. Removes whole numerical tokens from the tweet text. For example, a year value such as
2020
will be removed but not mixed values such as G20
. Default is TRUE
.
- removeUrls
Logical. Removes twitter shortened URL tokens from the tweet text. Default is TRUE
.
- termFreq
Numeric integer. Specifies the percentage of most frequent words to include. For example,
termFreq = 20
means that the 20 percent most frequently occurring words
will be included in the
semantic network as nodes. A larger percentage will increase the number of nodes and therefore the size of graph.
The default value is 5
, meaning the top 5 percent most frequent words are used.
- hashtagFreq
Numeric integer. Specifies the percentage of most frequent hashtags
to include. For
example, hashtagFreq = 20
means that the 20 percent most frequently occurring hashtags will be included in
the semantic network as nodes. The default value is 50
.
- assoc
Character string. Association of nodes. A value of "limited"
includes only edges between most
frequently occurring hashtags and terms. A value of "full"
includes ties between most frequently occurring
hashtags and terms, hashtags and hashtags, and terms and terms. Default is "limited"
.
- verbose
Logical. Output additional information about the network creation. Default is TRUE
.
- ...
Additional parameters passed to function. Not used in this method.