Open tpemartin opened 2 years ago
library("rjson")
result <- fromJSON(file = 'animal_shelter.json') json_data_frame <- as.data.frame(result) print(json_data_frame)
jsonlite::fromJSON("https://raw.githubusercontent.com/tpemartin/110-2-R/main/animal_shelter.json",simplifyDataFrame = F) ->shelter_data
To make the program work, you need to
Sys.getenv("PATH")
in R. remotes::install_github("tpemartin/econWeb")
.jsonlite::fromJSON("https://raw.githubusercontent.com/tpemartin/110-2-R/main/animal_shelter.json",simplifyDataFrame = F) -> animalshelter
I've upload my notes on Notion: https://schiou.notion.site/animal_shelter_crawling-8d45ad62d3e94d908053e5c8b871fb00
Import the following data to R:
https://raw.githubusercontent.com/tpemartin/110-2-R/main/animal_shelter.json
The data is coming from the web crawling program https://github.com/tpemartin/110-2-R/blob/main/shelter_crawling.R.
What will you proceed from there?