n_installed: Extract the number of facilities installed

View source: R/augmenters.R

n_installedR Documentation

Extract the number of facilities installed

Description

Using the model-modified dataframe of proposed_facility, count the number of events installed.

Usage

n_installed(proposed_facility)

Arguments

proposed_facility

dataframe from the mc_model, of facilities proposed with the additional information about whether the facility was installed or not - is_installed

Value

datafrmae

Examples


## Not run: 

mc_cv_n100_test |>
    mutate(n_installed = map(
        .x = proposed_facility,
        .f = n_installed
    )) |>
    select(n_installed) |>
    .[[1]]


## End(Not run)


njtierney/maxcovr documentation built on Nov. 27, 2024, 7:51 a.m.