{"id":335,"date":"2022-10-25T02:48:01","date_gmt":"2022-10-25T02:48:01","guid":{"rendered":"https:\/\/ap.pstek.nl\/pstek_wp\/?p=335"},"modified":"2022-11-01T03:33:19","modified_gmt":"2022-11-01T03:33:19","slug":"asb-research-center-reading-group-media-analysis-with-r","status":"publish","type":"post","link":"https:\/\/ap.pstek.nl\/pstek_wp\/2022\/asb-research-center-reading-group-media-analysis-with-r\/","title":{"rendered":"[ASB Research Center Reading Group] Media Analysis with R"},"content":{"rendered":"\n

This session provides a basic introduction to media analysis using R. It addresses the full workflow of acquiring the data, cleaning and processing, and then some simple analysis and visualization.<\/p>\n\n\n\n

We will acquire data from two sources: <\/s>Google News RSS feeds and Twitter<\/s>.<\/p>\n\n\n\n

Before joining the session, please make sure that you have:<\/p>\n\n\n\n

    \n
  1. Internet connection.<\/li>\n\n\n\n
  2. Installed R<\/a> and R Studio<\/a> on your laptop.<\/li>\n\n\n\n
  3. Install the packages\/libraries tidyRSS<\/strong>, rvest<\/strong>, twitteR<\/strong>,<\/s> quanteda<\/strong>, quanteda.textplots<\/strong> and ggplot2<\/strong> (optional).<\/li>\n\n\n\n
  4. Twitter account (to load Twitter data).<\/s><\/li>\n<\/ol>\n\n\n\n

    You can install the packages with the following code. If you already installed the packages previously, this code will re-install the latest version of the package. Note: depending on your setup, and the R packages you previously installed, the installation can take some time.<\/p>\n\n\n\n

    install.packages(c('tidyRSS', 'rvest', 'quanteda', 'quanteda.textplots', 'ggplot2'))<\/code><\/pre>\n\n\n\n

    Now that you are ready, please go ahead and follow these steps (mini tutorials).<\/p>\n\n\n\n