R/utils-ada-unisex.R

Defines functions ada_uni_function

## Function checks to see if ADA standard toilets are being queried
ada_uni_function <- function(accessible, unisex) {
  if (accessible == TRUE) {
    x <- "&ada=true"
  } else {
    x <- ""
  }
  if (unisex == TRUE) {
    y <- "&unisex=true"
  } else {
    y <- ""
  }

  paste0(x, y)
}

Try the refuge package in your browser

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

refuge documentation built on Jan. 15, 2021, 3:35 p.m.