I need help drafting code that pulls public data directly from a website that is in Socrata format. Here is a link:
There is an API endpoint:
https://data.cityofchicago.org/resource/xzkq-xp2w.json
After the data is uploaded, null values in the "Annual Salary" should be replaced with 50000.
We can use the
RSocratapackageThe following will replace the NAs in
annual_salarywith50000.However, if you'd like to do what it suggests on the city of Chicago website, you could consider multipling
typical_hourswithhourly_rateto estimate salary.