Description Usage Arguments Examples
Dig into a JSON data frame.
1
dig(jsondata, keyname, rs = FALSE)
jsondata
data.frame Data frame output from reading a JSON array data into R using jsonlite::fromJSON.
data.frame
jsonlite::fromJSON
keyname
character A key name to dig into jsondata.
character
rs
logical Short for return summary. Should dig return the data or a summary of the data?
logical
dig
1 2 3 4 5 6
library(jsonlite) library(dplyr) jsondata <- fromJSON("https://api.github.com/users/hadley/repos", flatten = FALSE) jsondata %>% dig("owner") %>% dig("type") jsondata %>% dig("owner", rs= T) jsondata %>% dig("owner") %>% fetch()
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.