uwescience/DSSG2016-UnsafeFoods

Name: DSSG2016-UnsafeFoods

Owner: UW eScience Institute

Description: Project's website:

Created: 2016-06-21 17:00:10.0

Updated: 2017-10-01 17:28:40.0

Pushed: 2016-11-07 21:16:35.0

Homepage: https://uwescience.github.io/DSSG2016-UnsafeFoods/

Size: 19763

Language: Jupyter Notebook

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Mining Online Data for Early Identification of Unsafe Food Products

Materials for the Mining Online Data for Early Identification of Unsafe Food Products project from the UW eScience Institute's Data Science for Social Good program.

Files
Data

The contents of data/ are ignored by git, but this is what it should contain:

nstall the XML package if it is not already installed
"XML" %in% installed.packages()) {
stall.packages("XML")

oad the XML package
ary("XML")

arse XML
<- xmlTreeParse("FDA_recalls.xml", useInternalNodes = TRUE)

onvert to data frame
<- xmlToDataFrame(doc)

rite to CSV
e.csv(dat, "../processed/FDA_recalls.csv", row.names = FALSE)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.