Package: sentimentr 2.9.1

sentimentr: Calculate Text Polarity Sentiment

Calculate text polarity sentiment at the sentence level and optionally aggregate by rows or grouping variable(s).

Authors:Tyler Rinker [aut, cre]

sentimentr_2.9.1.tar.gz
sentimentr_2.9.1.zip(r-4.5)sentimentr_2.9.1.zip(r-4.4)sentimentr_2.9.1.zip(r-4.3)
sentimentr_2.9.1.tgz(r-4.4-any)sentimentr_2.9.1.tgz(r-4.3-any)
sentimentr_2.9.1.tar.gz(r-4.5-noble)sentimentr_2.9.1.tar.gz(r-4.4-noble)
sentimentr_2.9.1.tgz(r-4.4-emscripten)sentimentr_2.9.1.tgz(r-4.3-emscripten)
sentimentr.pdf |sentimentr.html
sentimentr/json (API)
NEWS

# Install 'sentimentr' in R:
install.packages('sentimentr', repos = c('https://trinker.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/trinker/sentimentr/issues

Datasets:

On CRAN:

amplifierpolaritysentimentsentiment-analysisvalence-shifter

33 exports 426 stars 7.10 score 48 dependencies 9 mentions 628 scripts 1.7k downloads

Last updated 3 years agofrom:f85d63a15e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 20 2024
R-4.5-winOKAug 20 2024
R-4.5-linuxOKAug 20 2024
R-4.4-winOKAug 20 2024
R-4.4-macOKAug 20 2024
R-4.3-winOKAug 20 2024
R-4.3-macOKAug 20 2024

Exports:as_keyavailable_dataaverage_downweighted_zeroaverage_meanaverage_weighted_mixed_sentimentcombine_dataemotionemotion_byextract_emotion_termsextract_profanity_termsextract_sentiment_termsgeneral_rescaleget_sentenceshighlightis_keyprofanityprofanity_byreplace_emojireplace_emoji_identifierreplace_emoticonreplace_gradereplace_internet_slangreplace_ratingreplace_word_elongationsentimentsentiment_attributessentiment_bysentimentr_datauncombineupdate_keyupdate_polarity_tableupdate_valence_shifter_tablevalidate_sentiment

Dependencies:clicolorspacecpp11data.tabledplyrdttenglishfansifarvergenericsggplot2gluegtableisobandlabelinglatticelexiconlifecyclemagrittrMASSMatrixmgcvmgsubmunsellnlmeNLPpillarpkgconfigpurrrqdapRegexR6RColorBrewerrlangscalesslamstringistringrsyuzhettextcleantextshapetibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Readme and manuals

Help Manual

Help pageTopics
Create/Manipulate Hash Keysas_key is_key update_key update_polarity_table update_valence_shifter_table
Get Available Dataavailable_data sentimentr_data
Downweighted Zeros Averagingaverage_downweighted_zero average_mean average_weighted_mixed_sentiment
Combine 'sentimentr''s Sentiment Data Setscombine_data
Student Course Evaluation Commentscourse_evaluations
Twitter Tweets About the Deflategatecrowdflower_deflategate
Twitter Tweets About the Productscrowdflower_products
Twitter Tweets About Self Driving Carscrowdflower_self_driving_cars
Twitter Tweets About the Weathercrowdflower_weather
Compute Emotion Rateemotion
Emotion Rate By Groupsemotion_by
Extract Emotion Wordsextract_emotion_terms
Extract Profanity Wordsextract_profanity_terms
Extract Sentiment Wordsextract_sentiment_terms
Rescale a Numeric Vectorgeneral_rescale
Get Sentencesget_sentences
Polarity Text Highlightinghighlight
Hotel Reviewshotel_reviews
Apex AD2600 Progressive-scan DVD player Product Reviews From Amazonhu_liu_apex_reviews
Cannon G3 Camera Product Reviews From Amazonhu_liu_cannon_reviews
Creative Labs Nomad Jukebox Zen Xtra 40GB Product Reviews From Amazonhu_liu_jukebox_reviews
Nikon Coolpix 4300 Product Reviews From Amazonhu_liu_nikon_reviews
Nokia 6610 Product Reviews From Amazonhu_liu_nokia_reviews
Movie Reviewskaggle_movie_reviews
Kotzias Reviews: Amazon Cellskotzias_reviews_amazon_cells
Kotzias Reviews: IMBDkotzias_reviews_imdb
Kotzias Reviews: Yelpkotzias_reviews_yelp
Sentiment Scored New York Times Articlesnyt_articles
Plots a emotion objectplot.emotion
Plots a emotion_by objectplot.emotion_by
Plots a profanity objectplot.profanity
Plots a profanity_by objectplot.profanity_by
Plots a sentiment objectplot.sentiment
Plots a sentiment_by objectplot.sentiment_by
2012 U.S. Presidential Debatespresidential_debates_2012
Prints an extract_emotion_terms Objectprint.extract_emotion_terms
Prints an extract_profanity_terms Objectprint.extract_profanity_terms
Prints an extract_sentiment_terms Objectprint.extract_sentiment_terms
Prints a validate_sentiment Objectprint.validate_sentiment
Compute Profanity Rateprofanity
Profanity Rate By Groupsprofanity_by
Sam I Am Textsam_i_am
Polarity Score (Sentiment Analysis)sentiment
Extract Sentiment Attributes from Textsentiment_attributes
Polarity Score (Sentiment Analysis) By Groupssentiment_by
Calculate Text Polarity Sentimentpackage-sentiment sentimentr
Ungroup a 'sentiment_by' Object to the Sentence Leveluncombine
Validate Sentiment Score Sign Against Known Resultsvalidate_sentiment