R/read_xl.R

Defines functions read_xl

Documented in read_xl

#' Read an Excel file
#'
#' This function loads a table from an Excel file.
#'
#' @param path The path to the Excel file to read.
#' @param sheet Optional, the sheet to read (either a string with the name of the sheet or an integer with its position). Default: 1.
#'
#' @return A tibble.
#'
#' @export

read_xl <- function(path, sheet = 1) {
    readxl::read_xlsx(path = path, sheet = sheet, col_names = TRUE)
}

Try the concatipede package in your browser

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

concatipede documentation built on Aug. 7, 2021, 1:05 a.m.