carissalow / rapids

Reproducible Analysis Pipeline for Data Streams
http://www.rapids.science/
GNU Affero General Public License v3.0
36 stars 20 forks source link

Avoid NA problem in barnett location evaluation #172

Closed shaabans closed 2 years ago

shaabans commented 2 years ago

Avoid an issue where occasional weird data causes the condition being evaluated in the if statement to be NA, which R does not like.

Error in if ((nrow(segment_labels) == 0 || nrow(location) == 0 || all(location$is_daily ==  : 
missing value where TRUE/FALSE needed
Calls: barnett_daily_features
Execution halted
[Sat Jan 15 20:12:44 2022]
Error in rule phone_locations_barnett_daily_features:
    jobid: 143
    output: data/interim/73KY/phone_locations_barnett_daily.csv