excel2List: Read an excel workbook to a named list of data.tables or...

View source: R/excel2List.R

excel2ListR Documentation

Read an excel workbook to a named list of data.tables or other type

Description

You can tell the function what type you want the data.frames to be coerced to. Default is data.table.

Usage

excel2List(path, FUN_type = "data.table::data.table", ...)

Arguments

path

[type: char] a path to an excel file, read by readxl::excel_sheets.

FUN_type

[type: function | char, default: "data.table::data.table"] a function or string matching a function name to which to format the resulting data in the list.

...

extra arguments passed to readxl::read_excel().

Value

list<data.table | dx>

Examples


excel2List(system.file("extdata", "comparisons.xlsx", package = "derecksLabTools"), FUN_type = as.data.frame)

excel2List(system.file("extdata", "comparisons.xlsx", package = "derecksLabTools"), FUN_type = "data.table::as.data.table")


CoarfaBCM/derecksLabTools documentation built on April 3, 2022, 10:29 p.m.