Turn media insight into action

  • Home
  • Expertise
  • About
  • Pricing
  • Blog
  • Contact

Oct 09 2012

(a)R(hhh)…that’s how it works!

I have done some SQL, HTML and CSS in the past…that’s it for my coding. I have always thought it was not ‘if’ but ‘when’ would again have to grapple with the viper like serpent thing that is programing.

Well I wrote that a few hours ago when I was stuck at a dead-end, when my code was going nowhere, throwing up an error Google could not help with. But you may be pleased to know things have progressed, and largely at the suggestion of Tony Hirst (@psychemedia) have persisted with with RStudio and from being quite confused have been able to generate some quite exciting results.

What is R and RStudio? R is a computer language based on C and Fortran and focused on the functionality associated with needs of researchers. RStudio is a user interface into R which, while it does not do away with coding, does simplify some of the more tedious processes.

It has been an interesting process and in no way characterises my level of understanding of the code generating these results. And here’s the thing….do you need to understand it? If you can appreciate the various processes, where the data calls are made how you can refashion the process to collect a different set of data, is that enough?

On the web you will find more than snippets of code. I used this code submitted by  Gaston Sanchez, which, after a few false starts, proved able at collecting up to 1500 tweets on an ascribable subject area (Starbucks in this case), then cleaning the feed for irrelevances like ‘RT’, followed by an analysis of relative favourability and emotional associations, both based on a fully trained up Bayes classifier.

The fully code is not much short of a hundred lines; but is it understandable? Well the syntax is challenging, but the instructions are clear enough and once you have your head straight on RStudio, relatively straightforward to initiate. However the issue will come when it does not quite do what’s wanted.  Then a lack of coding knowledge might become an issue! But the point to really push is that it has been possible to run some relatively complex process, generating useful results after only a few weeks.

Written by Michael Blowers · Categorized: Uncategorized

Comments

  1. Bodong says

    October 22, 2012 at 7:24 pm

    Hi Michael,

    It was great to read your post about R analytics on Twitter data. I recently just started to get my hands dirty on doing similar analysis, after taking a Coursera course about R. You can find a post about my first (simple) attempt of using R to analyze tweets.

    Cheers,
    Bodong

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Thanks, please prove you are not a robot * Time limit is exhausted. Please reload the CAPTCHA.

Updates by Email

Please complete this form to sign-up to receive my blog posts by email. You can unsubscribe at any time and your email address will not be used for any other purpose.

About

Media analyst with a half an eye on what's coming down the road. Often caught out but always fascinated by the possibilities. Read More…

  • Email
  • Facebook
  • Google+
  • LinkedIn
  • Twitter
  • YouTube

Recent Tweets

Tweets by @michaelblowers

Tweets by @MediaEvaluatio1

Categories

  • #PRstack
  • AMEC
  • CIPR
  • Events
  • Future PR/Comms
  • Google Analytics
  • Google Cloud Natural Language
  • Influencer metrics
  • Integrated Evaluation Framework
  • Lead generation
  • Media Analysis
  • Media Evaluation
  • Media Research
  • PESO model
  • PR Awards
  • PR Evaluation
  • PR Measurement
  • PR Tools
  • Public Relations
  • Sentiment measurement
  • SMART Objectives
  • Social media listening
  • Uncategorized

Archives

  • Home
  • Blog
  • Expertise
  • About
  • Pricing
  • Awards
  • In-house
  • PR Agencies
  • Contact
  • Cookies, etc

Copyright © 2023 · Altitude Pro Theme on Genesis Framework · WordPress · Log in

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy
Necessary
Always Enabled