R/load_raw.R

Defines functions load_raw

Documented in load_raw

#Function for loading excel data from QuantStudio output

#' Import and Process Initial Raw Excel Data
#'
#' Takes QuantStudio output excel file and loads into df parsing CT as numeric
#'
#' @return data frame
#' @importFrom readxl read_excel
#' @importFrom here here
#'
#' @examples
#' load_raw()
#'
#' @export
load_raw <- function(path, sheet, cell_range) {

  df_raw <- readxl::read_excel(path = here::here(path), sheet = sheet, range = cell_range)
  df_raw$Cq <- as.numeric(as.character(df_raw$Cq))

  df_raw
}
rhecht95/qPCR documentation built on Dec. 25, 2021, 9:41 a.m.