R/filter_by.R

Defines functions vi_filter_by ol_filter_by ib_filter_by U_filter_by Ustar_filter_by

# helper functions so don't have to remember
# which dimension for which statistic

Ustar_filter_by <- function(he, wtp) {
  he$Ustar[, he$k == wtp]
}

U_filter_by <- function(he, wtp) {
  he$U[, he$k == wtp, ]
}

ib_filter_by <- function(he, wtp) {
  he$ib[he$k == wtp, , ]
}

ol_filter_by <- function(he, wtp) {
  he$ol[, he$k == wtp]
}

vi_filter_by <- function(he, wtp) {
  he$vi[, he$k == wtp]
}

Try the BCEA package in your browser

Any scripts or data that you put into this service are public.

BCEA documentation built on Nov. 25, 2023, 5:08 p.m.