r - Create, validate and compare data schema (for data harvest) in ckanr -


this data harvest exercise. code below ingests data json. (a) print/extract data schema data schema1. (b) compare against schema2, because need change metadata header names , accepted values. ckan has python "idatasetform" plugin apparently allows kind of analysis, don't know how in r. thanks

library(ckanr) ckanr_setup(url = "https://energydata.info") data <- ckanr:::package_show('6c0d331b-4dca-4815-a006-264745cbb9d0', = 'json', pretty = true) data <- jsonlite::fromjson(data)$result ## extract schema1 'data' ## compare schema1 vs. schema2 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -