Hi @agila5 @luukvdmeer @Robinlovelace Before submitting `tmap.networks` to CRAN, I'd like make the preprocessing step more efficient. Could you help me a bit? * In `tmapGetShapeMeta1()` the data variable names from the spatial objects are collected. I didn't now how to do this directly (as fast as possbile). See https://github.com/r-tmap/tmap.networks/blob/main/R/tmapShape_sfnetworks.R#L9C1-L37C2. * In `tmapGetShapeMeta2()` the factor levels are determined (which will be used for faceting). See https://github.com/r-tmap/tmap.networks/blob/main/R/tmapShape_sfnetworks.R#L69-L86 Same question: can this be improved, e.g. without having to call `to_spatial_explicit`?
Hi @agila5 @luukvdmeer @Robinlovelace
Before submitting
tmap.networksto CRAN, I'd like make the preprocessing step more efficient.Could you help me a bit?
tmapGetShapeMeta1()the data variable names from the spatial objects are collected. I didn't now how to do this directly (as fast as possbile). See https://github.com/r-tmap/tmap.networks/blob/main/R/tmapShape_sfnetworks.R#L9C1-L37C2.tmapGetShapeMeta2()the factor levels are determined (which will be used for faceting). See https://github.com/r-tmap/tmap.networks/blob/main/R/tmapShape_sfnetworks.R#L69-L86 Same question: can this be improved, e.g. without having to callto_spatial_explicit?