O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

The classify_emotion function helps us analyze the text and classify it into different categories of emotion--anger, disgust, fear, joy, sadness, and surprise - whereas the classify_polarity function helps us classify text as positive, negative, or neutral.

During the installation of the slam package, if you get ERROR: compilation failed for package 'slam', then based on your operating system (macOS or Windows), you need to install the tools (gcc/gfortran) in order to compile the source package of slam. For Linux, the tools and compilers should be part of your installation. Mac tools: http://gcc.gnu.org/wiki/GFortranBinaries#MacOS Windows tools: http://cran.r-project.org/bin/windows/Rtools/. Also make sure that you are using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required