R/extract_ou.R

Defines functions extract_ou

Documented in extract_ou

#' Read in OU Name from FAST PPL tab
#'
#' @param filepath full file path for the COP19 FAST
#' @param cell cell to extract OU name from
#'
#' @export
#' @importFrom magrittr %>%

extract_ou <- function(filepath, cell){

  ou <- readxl::read_excel(filepath,
                     sheet = "1 PLL",
                     range = cell) %>%
    names()

  return(ou)

}
USAID-OHA-SI/fastR documentation built on Feb. 28, 2020, 10:48 p.m.