R/read_bruker_file.R

Defines functions read_bruker_file

Documented in read_bruker_file

#' Read Bruker Biotyper data into data table
#'
#' @param bruker_html_file path to Bruker biotyper html file output
#'
#' @return data table containing Bruker biotyper data
#' @export
#'
read_bruker_file <- function(bruker_html_file) {
  html_object <- xml2::read_html(bruker_html_file)
  html_tables <- rvest::html_table(html_object)
  biotyper_data <- html_tables[[2]]
  return(biotyper_data)
}
econtijoch/FaithLabTools documentation built on July 21, 2022, 8:34 a.m.