Created runTLS flag
runTLS is a boolean variable that controls whether the ltscount chunk is evaluated
This commit is contained in:
parent
3a90407738
commit
ba5c5c9c29
@ -30,6 +30,7 @@ library(httr)
|
|||||||
library(jsonlite)
|
library(jsonlite)
|
||||||
library(parallel)
|
library(parallel)
|
||||||
fig.height <- 6
|
fig.height <- 6
|
||||||
|
runTLS <- FALSE
|
||||||
set.seed(1)
|
set.seed(1)
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -186,9 +187,9 @@ bike_lts_buffer["student_use"] <- unlist(lapply(st_intersects(bike_lts_buffer, r
|
|||||||
bike_lts <- left_join(bike_lts, as.data.frame(bike_lts_buffer %>% select(OBJECTID, student_use)), by = "OBJECTID")
|
bike_lts <- left_join(bike_lts, as.data.frame(bike_lts_buffer %>% select(OBJECTID, student_use)), by = "OBJECTID")
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes: for each segment in bike_lts, this counts how many student's calculated routes intersect with it (within a 10 m buffer)
|
Notes: for each segment in bike_lts, this counts how many student’s calculated routes intersect with it (within a 10 m buffer)
|
||||||
|
|
||||||
```{r routeslts, eval = TRUE, echo = TRUE, results = "show", warning = FALSE, error = TRUE, message = FALSE}
|
```{r routeslts, eval = runTLS, echo = FALSE, results = "show", warning = FALSE, error = TRUE, message = FALSE}
|
||||||
getLTSForRoute <- function(i) {
|
getLTSForRoute <- function(i) {
|
||||||
|
|
||||||
# Filter the routes for the current student number
|
# Filter the routes for the current student number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user