jsonlite is a JSON data parser for R. It makes reading data from JSON sources really easy and efficient.
Reading in JSON data with the jsonlite R package
Loading the jsonlite package
The following command is executed to include the jsonlite package in the R workspace:
library(jsonlite)
Data processing or parsing is done through a process called simplification. This is where JSON arrays are converted from a list into a more specific R class. Basically, with a simplification process, the arrays are broken down into values that can be easily understood. There are three different options that can be passed as arguments to the fromJSON function:
- simplifyVector: This option is used to convert arrays into a vector format
- simplifyDataFrame...