I think it's because some people put "none" or "no" in numeric columns in
the forms.


On Tue, Aug 27, 2013 at 3:19 PM, prabhasp <notifications@github.com> wrote:

> In cleaning_999s/clean_out999s_113.R:
>
> > @@ -71,6 +71,21 @@ h$medication_price <- as.numeric(h$medication_price)
> >  cellst(h, 'inpatient_stay_price',
> >         which(h$inpatient_stay_price > 5000), NA_integer_)
> >
> > +h$days_facility_inacsble_pastyr<- as.numeric(h$days_facility_inacsble_pastyr)
> > +h$days_no_electricity <- as.numeric(h$days_no_electricity)
> > +h$days_no_water_pastmth <- as.numeric(h$days_no_water_pastmth)
> > +h$days_no_potable_water_pastmth <- as.numeric(h$days_no_potable_water_pastmth)
> > +h$flush_toilet_number <- as.numeric(h$flush_toilet_number)
> > +h$flush_toilet_not_working <- as.numeric(h$flush_toilet_not_working)
> > +h$open_pit_latrine_number <- as.numeric(h$open_pit_latrine_number)
> > +h$open_pit_latrine_not_working <- as.numeric(h$open_pit_latrine_not_working)
> > +h$times_trash_disposed_lastmth <- as.numeric(h$times_trash_disposed_lastmth)
> > +h$days_facility_understaffed <- as.numeric(h$days_facility_understaffed)
> > +h$days_facility_understaffed_close <- as.numeric(h$days_facility_understaffed_close)
> > +h$routine_visit_price <- as.numeric(h$routine_visit_price)
> > +h$child_health_services_price <- as.numeric(h$child_health_services_price)
> > +h$hiv_treatment_price <- as.numeric(h$hiv_treatment_price)
>
> Why are these being imported as non-numeric? Maybe we need to change the
> na.strings so that this doesn't need to be done?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/modilabs/nmis_R_scripts/pull/16/files#r6015322>
> .
>