VocabCount: JSTORVocabCount

Description Usage Arguments Value Examples

Description

This function counts the number of appearences of a set of words in abstracts or titles of a tidyJSTOR dataframe

Usage

1
VocabCount(dfEco, ArrayVocab, titles = FALSE, StopWords = TRUE, scores)

Arguments

dfEco

A dataframe in the JSTOR_df format (see: JSTOR_df())

ArrayVocab

a vector of charcters ot be counted as c("word1", "word2", ..., "wordn")

titles

Whether to analyze titles of abstracts. Default titles = FALSE

StopWords

Whether to use default StopWords or a custom dataframe of stop words. If opted for custom, a dataframe of two columns (word, lexicon = "custom") must be provided.

scores

a vector of scores matching the vector of character in the parameter ArrayVocab

Value

A dataframe of counted words JSTORVocabCount

Examples

1
2
3
JSTORplotVocabCount(df, c("theory", "theories", "theoretical"))

JSTORVocabCount(df, c("theory", "theories", "theoretical"), scores = c(1,2,3))

arthurbnetto/tidyJSTOR documentation built on Feb. 13, 2020, 5:22 p.m.