diff --git a/.lintr b/.lintr new file mode 100644 index 0000000..a394600 --- /dev/null +++ b/.lintr @@ -0,0 +1,4 @@ +linters: with_defaults( + line_length_linter(120), + assignment_linter = NULL + ) diff --git a/vignettes/si.Rmd b/vignettes/si.Rmd index fbd8bc7..2f2ef19 100644 --- a/vignettes/si.Rmd +++ b/vignettes/si.Rmd @@ -107,7 +107,7 @@ Prepare the OD dataset as follows: ```{r} od_sim = si_to_od(origins = zones, destinations = zones) -head(od_sim, 2) +names(od_sim) ``` Note that the output has duplicate columns: `si_to_od()` joins data from the origin and destination objects into the resulting OD object. @@ -119,7 +119,7 @@ A simplistic SIM can be created just based on the distance between points: ```{r unconstrained1} si_power = function(od, beta) { (od[["distance_euclidean"]] / 1000)^beta -} +} od_calculate = si_calculate(od_sim, fun = si_power, beta = -0.8) plot(od_calculate["res"], logz = TRUE) ```