Title: | Read 'Excel' Binary (.xlsb) Workbooks |
---|---|
Description: | Import data from 'Excel' binary (.xlsb) workbooks into R. |
Authors: | Michael Allen [aut, cre] |
Maintainer: | Michael Allen <[email protected]> |
License: | GPL-3 |
Version: | 0.1.61 |
Built: | 2025-01-10 07:35:18 UTC |
Source: | https://github.com/cranhaven/cranhaven.r-universe.dev |
Imports a region from an xlsb (binary) workbook
read_xlsb(path, sheet = NULL, range = NULL, col_names = TRUE, col_types = NULL, na = "", trim_ws = TRUE, skip = 0, ...)
read_xlsb(path, sheet = NULL, range = NULL, col_names = TRUE, col_types = NULL, na = "", trim_ws = TRUE, skip = 0, ...)
path |
Path to the xlsb workbook |
sheet |
Name or index of the sheet to read. If the sheet name is specified as part of the range, this parameter is ignored |
range |
A named range or a string representing an excel range (of the form Sheet!A1:D10) or a cellranger object |
col_names |
TRUE uses the first row as the column name, FALSE sets names to column.#, or a character vector |
col_types |
NULL to imply type from spreadsheet or one of ignore/logical/numeric/date/string per column |
na |
Single string or array of strings to interpret as missing |
trim_ws |
Trim whitespace from strings |
skip |
Number of rows to skip before reading data |
... |
Additional options. Pass debug = TRUE to return xlsb environment |
read_xlsb(path = system.file("extdata", "TestBook.xlsb", package = "readxlsb"), range = "PORTFOLIO") read_xlsb(path = system.file("extdata", "TestBook.xlsb", package = "readxlsb"), range = "UNICODE_STR", col_names = FALSE)
read_xlsb(path = system.file("extdata", "TestBook.xlsb", package = "readxlsb"), range = "PORTFOLIO") read_xlsb(path = system.file("extdata", "TestBook.xlsb", package = "readxlsb"), range = "UNICODE_STR", col_names = FALSE)