Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:36:39+00:00 2026-06-14T15:36:39+00:00

I’m currently doing sentiment and emotion analysis of Twitter’s data using R sentiment package

  • 0

I’m currently doing sentiment and emotion analysis of Twitter’s data using R sentiment package and need to add new words to the subjectivity and emotion lexicons used by the package as there are some words that carry specific sentiment and emotion in the topic that I analyze.

Does anyone know how to add words to the lexicon using the R sentiment package itself or any other R command? I have searched in the documentation but cannot find any means to do so.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:36:40+00:00Added an answer on June 14, 2026 at 3:36 pm

    Both the subjectivity & emotion lexicon when read in (say, as csv) construct a data frame for you. Adding entries to a data frame can be done using the rbind() function.

    > patientID <- c(1, 2, 3, 4)
    > age <- c(25, 34, 28, 52)
    > diabetes <- c(“Type1”, “Type2”, “Type1”, “Type1”)
    > status <- c(“Poor”, “Improved”, “Excellent”, “Poor”)
    > patientdata <- data.frame(patientID, age, diabetes, status)
    > patientdata
    patientID age diabetes status
    1 1 25 Type1 Poor
    2 2 34 Type2 Improved
    3 3 28 Type1 Excellent
    4 4 52 Type1 Poor
    > patientID <- c(10, 20, 30, 40)
    > age <- c(50, 68, 56, 104)
    > diabetes <- c(“Type4”, “Type5”, “Type6”, “Type7”)
    > status <- c(“Poorish”, “Improving”, “Excellento”, “Poorish”)
    > patientdata1 <- data.frame(patientID, age, diabetes, status)
    > patientdata1
    patientID age diabetes status
    1 10 50 Type4 Poorish
    2 20 68 Type5 Improving
    3 30 56 Type6 Excellento
    4 40 104 Type7 Poorish
    > concatPD <- rbind(patientdata,patientdata1)
    > concatPD
    patientID age diabetes status
    1 1 25 Type1 Poor
    2 2 34 Type2 Improved
    3 3 28 Type1 Excellent
    4 4 52 Type1 Poor
    5 10 50 Type4 Poorish
    6 20 68 Type5 Improving
    7 30 56 Type6 Excellento
    8 40 104 Type7 Poorish
    >

    I simply added the weird types of diabetes to ensure that the 2 frames are distinguished. 🙂
    In other words, you can create our own csv, read it (thereby creating another data frame) & rbind them. Ensure that the columns of both data frames are in sync.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
In my XML file chapters tag has more chapter tag.i need to display chapters
I am doing a simple coin flipping experiment for class that involves flipping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.