Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/9/d213665487/htdocs/clickandbuilds/CoalGeology/wp-content/plugins/wordpress-firewall.php on line 245

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/9/d213665487/htdocs/clickandbuilds/CoalGeology/wp-content/plugins/wordpress-firewall.php on line 245

Warning: Cannot modify header information - headers already sent by (output started at /homepages/9/d213665487/htdocs/clickandbuilds/CoalGeology/wp-content/plugins/wordpress-firewall.php:245) in /homepages/9/d213665487/htdocs/clickandbuilds/CoalGeology/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 62
reading from JSON data in R – Coal Geology and Mining: Consulting Services

reading from JSON data in R

#reading from JSON data in R
library(jsonlite)
#JSON to my user account
json_data=fromJSON(“https://api.github.com/users/hydrogeologist/repos”)
names(json_data)
names(json_data$owner)
json_data$owner$login
#Writing data frames into JSON
My_JSON=toJSON(iris, pretty=T)
cat(My_JSON)
iris2=fromJSON(My_JSON)
head(iris2)

Leave a Comment

Your email address will not be published. Required fields are marked *