ipeaGIT / gtfs2emis

R package to estimate public transport emissions based on GTFS data
https://ipeagit.github.io/gtfs2emis/
Other
28 stars 2 forks source link

add na.rm = TRUE into emis_summary #55

Closed Joaobazzo closed 2 years ago

Joaobazzo commented 2 years ago

Here.

    # aggregate emissions and reorder
    tmp_dt <- tmp_dt[, lapply(.SD, sum, na.rm = TRUE), .SDcols = !("time"),
                     by =  time]
    newCols <- names(tmp_dt)[!(names(tmp_dt) %in% "time")]
    data.table::setcolorder(tmp_dt,
                            neworder = c(newCols,"time"))