Data4Democracy / drug-spending

Project to understand pharmaceutical spending, currently focused on US government programs.
72 stars 46 forks source link

Script for uploading to postgres #21

Closed JacobCoblentz closed 7 years ago

JacobCoblentz commented 7 years ago

Downloaded lobbying data by industry from opensecrets, cleaned it, uploaded to postgres, and returned a CSV of all pharma lobbying transactions.

jenniferthompson commented 7 years ago

@JacobCoblentz This is great!! One quick thing I noticed - is it possible to remove the trailing spaces in the year column? If not, I (or whoever) can do it pretty quickly in "regular" R after this gets merged, but figured it would be cleaner to do it in the same file if possible (I haven't used RPostgreSQL so don't know what it's capable of!).

JacobCoblentz commented 7 years ago

Yeah- uno momento.

JacobCoblentz commented 7 years ago

@jenniferthompson done- will build the crosswalk for drug-->company tomorrow. Busy freaking out on twitter rn

jenniferthompson commented 7 years ago

Awesome - thanks! (and, yes. I had to shut it off)