ATFutures / upthat

Urban planning and transport health assessment tool
4 stars 1 forks source link

Remove excess info from networks on server #5

Closed Robinlovelace closed 5 years ago

Robinlovelace commented 5 years ago

Currently we have:

net = readRDS(system.file("net.Rds", package = "upthat"))
head(net)
#>        from_id      to_id edge_id from_lon from_lat   to_lon   to_lat
#> 38  2589407293 5174857024 a246623 85.31030 27.71481 85.31023 27.71390
#> 94  1875597194 1968417633 a246544 85.31218 27.71264 85.31218 27.71161
#> 410 5533222482 5662991935 a246042 85.31002 27.71588 85.30925 27.71545
#> 436 3487459912 5093800713 a246004 85.31055 27.71481 85.31068 27.71428
#> 485  724316510  993710686 a245932 85.30959 27.70607 85.30819 27.70639
#> 490 1275284544 6193720260 a245921 85.30759 27.71200 85.30657 27.71336
#>             d   object_      highway oneway.bicycle oneway:bicycle
#> 38  101.33715 133051041 unclassified           <NA>           <NA>
#> 94  114.35734  24683729  residential           <NA>           <NA>
#> 410 119.90618  56688294  residential           <NA>           <NA>
#> 436  82.04076 523171220      footway           <NA>           <NA>
#> 485 142.90122  58425711     cycleway           <NA>           <NA>
#> 490 182.68254 112117466  residential           <NA>           <NA>
#>     d_weighted     time time_weighted      flow component
#> 38   101.33715 36.48137      36.48137 113495846         1
#> 94   114.35734 41.16864      41.16864 116615984         1
#> 410  119.90618 43.16622      43.16622 109072960         1
#> 436   82.04076 29.53467      29.53467 100494246         1
#> 485  142.90122 51.44444      51.44444 108080837         1
#> 490  182.68254 65.76572      65.76572 119321239         1
#>                                                                                                                                                                                                                                                                                                                                                                                       geometry
#> 38                                                                                                                                                                                                                                                                      85.31030, 85.31027, 85.31024, 85.31024, 85.31023, 85.31023, 27.71481, 27.71459, 27.71425, 27.71416, 27.71411, 27.71390
#> 94                                                                                                                                                                                                                                                  85.31218, 85.31215, 85.31215, 85.31215, 85.31215, 85.31216, 85.31218, 27.71264, 27.71225, 27.71204, 27.71194, 27.71184, 27.71172, 27.71161
#> 410                                         85.31002, 85.31002, 85.31001, 85.31001, 85.30999, 85.30980, 85.30962, 85.30961, 85.30961, 85.30960, 85.30960, 85.30959, 85.30947, 85.30931, 85.30930, 85.30930, 85.30925, 27.71588, 27.71586, 27.71582, 27.71581, 27.71581, 27.71582, 27.71583, 27.71583, 27.71582, 27.71571, 27.71569, 27.71569, 27.71570, 27.71570, 27.71570, 27.71569, 27.71545
#> 436 85.31055, 85.31054, 85.31052, 85.31051, 85.31050, 85.31049, 85.31049, 85.31050, 85.31048, 85.31048, 85.31053, 85.31057, 85.31063, 85.31067, 85.31070, 85.31070, 85.31069, 85.31070, 85.31068, 27.71481, 27.71478, 27.71475, 27.71471, 27.71467, 27.71462, 27.71460, 27.71457, 27.71448, 27.71445, 27.71445, 27.71445, 27.71445, 27.71444, 27.71444, 27.71439, 27.71435, 27.71431, 27.71428
#> 485                                                                                                                                                                                                                                                                                         85.30959, 85.30909, 85.30902, 85.30827, 85.30819, 27.70607, 27.70621, 27.70624, 27.70635, 27.70639
#> 490                                                                                                                                                                                                         85.30759, 85.30747, 85.30732, 85.30722, 85.30712, 85.30700, 85.30687, 85.30668, 85.30657, 27.71200, 27.71213, 27.71226, 27.71236, 27.71249, 27.71268, 27.71285, 27.71315, 27.71336

Created on 2019-07-18 by the reprex package (v0.3.0)

There are some columns we don't need in there. There are also some columns we should add.