File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -247,11 +247,22 @@ check_equality <- function(a, b)
247247# get_measure_means ------------------------------------------------------------
248248get_measure_means <- function (blocks )
249249{
250- list (
250+ means_1 <- list (
251251 green_roof = green_roof_mean(blocks ),
252252 unpaved = unpaved_mean(blocks ),
253253 to_swale = to_swale_mean(blocks )
254254 )
255+
256+ get <- kwb.utils :: selectElements
257+
258+ measure_stats <- kwb.rabimo :: get_measure_stats(blocks , reference_system = 1 )
259+ means_2 <- get(measure_stats , " mean" )
260+
261+ check_equality(means_1 $ green_roof , get(means_2 , " green_roof" ))
262+ check_equality(means_1 $ unpaved , get(means_2 , " unpaved" ))
263+ check_equality(means_1 $ to_swale , get(means_2 , " to_swale" ))
264+
265+ means_1
255266}
256267
257268# green_roof_mean --------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments