Introduction to Text Analysis in R

Start Free Preview

Buying via our links supports this free directory · Affiliate disclosure.
Course facts
  • Payment: Free Preview (Paid Upgrade)
  • Learning style: Self-paced, start anytime
  • Format: Text & Interactive
  • Video access: Streaming Only
  • Before you start: Introduction to the Tidyverse
DataCamp details
  • Chapters: 4
Available onDataCamp

Course Details
Learning Style

Start Anytime

Level

Intermediate

Study Mode

100% Online

Duration

Short (< 10 Hours)

Languages
Audio Language

English

Outcomes
Certificate

Certificate of Completion

Price & Terms
Pricing Model

Free Preview (Paid Upgrade)

Technical
Content Medium

Text & Interactive

Video Access

Streaming Only

Specification
Access

Subscription

Clean, tokenize and chart text in R with tidy tools, then score sentiment and fit LDA topic models on airline tweets and complaint text.

At a glance
Duration4 hrs
LevelIntermediate
CertificateCertificate of Completion
LanguageEnglish
Taught byMaham Khan
AccessSubscription
Add your review
Add to wishlistAdded to wishlistRemoved from wishlist 0

Tweets, complaints and reviews are text, an unstructured kind of data that needs structure before anyone can count, plot or model it. Working in R with tidy tools, you break text into words and clean them, chart how often terms appear with ggplot2, score their emotional tone with sentiment dictionaries, and find hidden themes across a set of documents with latent Dirichlet allocation.

What You Will Achieve

  • Turn raw tweets into tidy tokens, strip out stop words and count the terms that matter
  • Build faceted ggplot2 word count plots and colored word clouds that compare word use across groups
  • Score words for emotional tone with a sentiment lexicon and chart the results by complaint type
  • Fit a latent Dirichlet allocation model on a document term matrix and give each topic a fitting name


Program Overview

Wrangling and Tokenizing Text

Gives unstructured text a usable shape by treating it as categorical data and splitting it into individual words.

  • Text as categorical data
  • Grouped summaries of airline tweets
  • Tokenizing, cleaning and counting words

Visualizing Word Counts with ggplot2

Applies ggplot2 to tidy text so that word counts become readable, comparable plots.

  • Word count plots and custom stop words
  • Reordering with factors and faceting by product
  • Word clouds with color

Sentiment Dictionaries and Topic Models

Moves past raw counts to the emotional tone of text and the topics running through a collection of documents.

  • NRC and other sentiment dictionaries
  • Appending dictionaries and reshaping data
  • Document term matrices
  • Fitting, tidying and comparing LDA output

Certificate Awarded (Paid)


Job Outlook

Text analysis in R is used in marketing analytics and in any work that draws on customer complaints, reviews or social media posts to understand what people are saying.


Our take

Good for: Analysts working in R who want a hands-on route into counting, charting and modeling the words in tweets and complaint records.

Keep in mind: Labeled intermediate, it starts with tokenizing basics, and its exercises center on airline tweets and complaint text.

Bottom line: A tidy R workflow that carries text through cleaning, plotting and sentiment scoring, ending with LDA topics you name yourself.

Frequently Asked Questions

How do tidy text tools and ggplot2 fit together here?

The work uses tidy text tools built to fit the tidyverse, and ggplot2 handles every plot. Each step keeps text in a tidy data shape, so the same habits carry through cleaning, charting and modeling.

What is latent Dirichlet allocation used for here?

It is the standard topic model the final chapter teaches. You build a document term matrix, fit the model, tidy its output, compare runs, and then interpret and name three and four topics.

What text do the exercises analyze?

Airline tweets anchor the opening chapter. Later exercises compare complaint and non-complaint text, count words by product, and break sentiment down by complaint type.

Which sentiment dictionary does the course work with?

You count and plot sentiments with the NRC dictionary, then append dictionaries to the word data and use reshaping and grouped summaries to sharpen the analysis.

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0

No reviews yet. Be the first to review this course.

There are no reviews yet.

Write your review

Reviews can only be posted by registered learners. Log in, then you will return here to post.

×
Report this page
Introduction to Text Analysis in R
Introduction to Text Analysis in R
LiveTalent
Logo