Re: [R] Reading data from Census API into R

2014-02-06 Thread Corey Sparks
I got it: library(rjson) library(plyr) test<-fromJSON(file=url("http://api.census.gov/data/2010/sf1?key=mykey&get=P0030001,NAME&for=county:*&in=state:48";)) test2<-ldply(test)[-1,] names(test2)<-ldply(test)[1,] head(test2) P0030001 NAME state county 258458 Anderson County48

[R] Reading data from Census API into R

2014-02-06 Thread Corey Sparks
Dear list, I've gotten access to the US Census Bureau's developer API for accessing various datasets they maintain. Here is the link: http://www.census.gov/developers/ They say that: "Data are accessible to software developers through a stateless HTTP GET request. Up to 50 variables can be reques