Curtin logo

Introduction to R - Data Literacy

Version 1.8 - July 2024

COPYRIGHT © Curtin University 2024

Workshop 1 - Part 8 - Next steps

Looking beyond this introduction

R Markdown/Notebooks

Similar to Jupyter Notebooks, R Notebooks interweave Markdown text and R code to create updateable data documents to serve many purposes. These documents can be published in a wide variety of formats.

Blogdown

Create entire automatically generated data based websites with

JSON Data

JSON is a serial data format which is widely used, particularly on the internet when obtaining data from API’s (Application Programming Interface).

For example, compare the data frame and JSON versions below. Same data, very different approaches.

data_frame1 <- data.frame(fruit=c("apples","oranges","lemons"),
                                   quantity=c(7,14,21))
data_frame1
##     fruit quantity
## 1  apples        7
## 2 oranges       14
## 3  lemons       21
json1 <- '[{"fruit":"apples","quantity":7},{"fruit":"oranges","quantity":14},{"fruit":"lemons","quantity":21}]'
prettify(json1)
## [
##     {
##         "fruit": "apples",
##         "quantity": 7
##     },
##     {
##         "fruit": "oranges",
##         "quantity": 14
##     },
##     {
##         "fruit": "lemons",
##         "quantity": 21
##     }
## ]
## 

Previous

Part 7 - Interactive map visualisations

Next

Part 9 - Licensing and Copyright

Curtin logo

Version 1.8 - July 2024

COPYRIGHT © Curtin University 2024