SlideShare a Scribd company logo
How to Use R for Journalism
Rob Grant
www.rforjournalists.com
@rforjournalists @robgrantuk
What’s possible with R?
What is R?
● A programming language and environment
● Base package plus extras
Very good for:
● Handling large data sets
● Combining data sets together
● Data analysis
● Scraping
● Visualisation
How I got started with R
● Just beginning to be used by journalists
● Downloaded RStudio and did a course on DataCamp
● Established R community
● Set up R for Journalists
Links and resources
● Stack Overflow
● DataCamp
● R-bloggers
● Cookbook for R
● Rstats subreddit
● R for Journalists

More Related Content

More from DataJournalismUK

Sensor journalism at #djuk17
Sensor journalism at #djuk17 Sensor journalism at #djuk17
Sensor journalism at #djuk17
DataJournalismUK
 
Open Corporates: company data for journalism
Open Corporates: company data for journalismOpen Corporates: company data for journalism
Open Corporates: company data for journalism
DataJournalismUK
 
Full Fact and automated factchecking
Full Fact and automated factcheckingFull Fact and automated factchecking
Full Fact and automated factchecking
DataJournalismUK
 
Data journalism in ireland
Data journalism in irelandData journalism in ireland
Data journalism in ireland
DataJournalismUK
 
Megan Lucero: the Bureau Local
Megan Lucero: the Bureau LocalMegan Lucero: the Bureau Local
Megan Lucero: the Bureau Local
DataJournalismUK
 
The history of precision journalism (and why it matters)
The history of precision journalism (and why it matters)The history of precision journalism (and why it matters)
The history of precision journalism (and why it matters)
DataJournalismUK
 
The Johnston Press investigations team
The Johnston Press investigations team  The Johnston Press investigations team
The Johnston Press investigations team
DataJournalismUK
 
Peter Geoghegan: The Ferret and data journalism in Scotland
Peter Geoghegan: The Ferret and data journalism in ScotlandPeter Geoghegan: The Ferret and data journalism in Scotland
Peter Geoghegan: The Ferret and data journalism in Scotland
DataJournalismUK
 
Urbs Media and robot journalism
Urbs Media and robot journalismUrbs Media and robot journalism
Urbs Media and robot journalism
DataJournalismUK
 
Emma Youle: The Archant Investigations Unit
Emma Youle: The Archant Investigations UnitEmma Youle: The Archant Investigations Unit
Emma Youle: The Archant Investigations Unit
DataJournalismUK
 
Regional data journalism
Regional data journalismRegional data journalism
Regional data journalism
DataJournalismUK
 
Marc Ellison: data journalism at BBC Scotland
Marc Ellison: data journalism at BBC ScotlandMarc Ellison: data journalism at BBC Scotland
Marc Ellison: data journalism at BBC Scotland
DataJournalismUK
 
Open data: publishing data for journalists
Open data: publishing data for journalistsOpen data: publishing data for journalists
Open data: publishing data for journalists
DataJournalismUK
 
Introducing the Local Data Lab
Introducing the Local Data LabIntroducing the Local Data Lab
Introducing the Local Data Lab
DataJournalismUK
 
The Detail and data journalism: Cormac Campbell
The Detail and data journalism: Cormac CampbellThe Detail and data journalism: Cormac Campbell
The Detail and data journalism: Cormac Campbell
DataJournalismUK
 
Follow the money: investigating Nigerian football agents
Follow the money: investigating Nigerian football agentsFollow the money: investigating Nigerian football agents
Follow the money: investigating Nigerian football agents
DataJournalismUK
 
Hyperlocal data journalism - Andy Dickinson
Hyperlocal data journalism - Andy DickinsonHyperlocal data journalism - Andy Dickinson
Hyperlocal data journalism - Andy Dickinson
DataJournalismUK
 
Dashboards and automation (Philip Nye)
Dashboards and automation (Philip Nye)Dashboards and automation (Philip Nye)
Dashboards and automation (Philip Nye)
DataJournalismUK
 
Sneak preview: Local News Engine (Will Perrin)
Sneak preview: Local News Engine (Will Perrin)Sneak preview: Local News Engine (Will Perrin)
Sneak preview: Local News Engine (Will Perrin)
DataJournalismUK
 
Investigating fishing quotas - Crina Boros
Investigating fishing quotas - Crina BorosInvestigating fishing quotas - Crina Boros
Investigating fishing quotas - Crina Boros
DataJournalismUK
 

More from DataJournalismUK (20)

Sensor journalism at #djuk17
Sensor journalism at #djuk17 Sensor journalism at #djuk17
Sensor journalism at #djuk17
 
Open Corporates: company data for journalism
Open Corporates: company data for journalismOpen Corporates: company data for journalism
Open Corporates: company data for journalism
 
Full Fact and automated factchecking
Full Fact and automated factcheckingFull Fact and automated factchecking
Full Fact and automated factchecking
 
Data journalism in ireland
Data journalism in irelandData journalism in ireland
Data journalism in ireland
 
Megan Lucero: the Bureau Local
Megan Lucero: the Bureau LocalMegan Lucero: the Bureau Local
Megan Lucero: the Bureau Local
 
The history of precision journalism (and why it matters)
The history of precision journalism (and why it matters)The history of precision journalism (and why it matters)
The history of precision journalism (and why it matters)
 
The Johnston Press investigations team
The Johnston Press investigations team  The Johnston Press investigations team
The Johnston Press investigations team
 
Peter Geoghegan: The Ferret and data journalism in Scotland
Peter Geoghegan: The Ferret and data journalism in ScotlandPeter Geoghegan: The Ferret and data journalism in Scotland
Peter Geoghegan: The Ferret and data journalism in Scotland
 
Urbs Media and robot journalism
Urbs Media and robot journalismUrbs Media and robot journalism
Urbs Media and robot journalism
 
Emma Youle: The Archant Investigations Unit
Emma Youle: The Archant Investigations UnitEmma Youle: The Archant Investigations Unit
Emma Youle: The Archant Investigations Unit
 
Regional data journalism
Regional data journalismRegional data journalism
Regional data journalism
 
Marc Ellison: data journalism at BBC Scotland
Marc Ellison: data journalism at BBC ScotlandMarc Ellison: data journalism at BBC Scotland
Marc Ellison: data journalism at BBC Scotland
 
Open data: publishing data for journalists
Open data: publishing data for journalistsOpen data: publishing data for journalists
Open data: publishing data for journalists
 
Introducing the Local Data Lab
Introducing the Local Data LabIntroducing the Local Data Lab
Introducing the Local Data Lab
 
The Detail and data journalism: Cormac Campbell
The Detail and data journalism: Cormac CampbellThe Detail and data journalism: Cormac Campbell
The Detail and data journalism: Cormac Campbell
 
Follow the money: investigating Nigerian football agents
Follow the money: investigating Nigerian football agentsFollow the money: investigating Nigerian football agents
Follow the money: investigating Nigerian football agents
 
Hyperlocal data journalism - Andy Dickinson
Hyperlocal data journalism - Andy DickinsonHyperlocal data journalism - Andy Dickinson
Hyperlocal data journalism - Andy Dickinson
 
Dashboards and automation (Philip Nye)
Dashboards and automation (Philip Nye)Dashboards and automation (Philip Nye)
Dashboards and automation (Philip Nye)
 
Sneak preview: Local News Engine (Will Perrin)
Sneak preview: Local News Engine (Will Perrin)Sneak preview: Local News Engine (Will Perrin)
Sneak preview: Local News Engine (Will Perrin)
 
Investigating fishing quotas - Crina Boros
Investigating fishing quotas - Crina BorosInvestigating fishing quotas - Crina Boros
Investigating fishing quotas - Crina Boros
 

Recently uploaded

哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
2023240532
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 

Recently uploaded (20)

哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 

How to use R for journalism

  • 1. How to Use R for Journalism Rob Grant www.rforjournalists.com @rforjournalists @robgrantuk
  • 3. What is R? ● A programming language and environment ● Base package plus extras Very good for: ● Handling large data sets ● Combining data sets together ● Data analysis ● Scraping ● Visualisation
  • 4. How I got started with R ● Just beginning to be used by journalists ● Downloaded RStudio and did a course on DataCamp ● Established R community ● Set up R for Journalists
  • 5. Links and resources ● Stack Overflow ● DataCamp ● R-bloggers ● Cookbook for R ● Rstats subreddit ● R for Journalists