Version 1.8 - July 2024
COPYRIGHT © Curtin University 2024
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.
Create entire automatically generated data based websites with
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
## }
## ]
##
Part 7 - Interactive map visualisations
Part 9 - Licensing and Copyright
Version 1.8 - July 2024