tabs2table | R Documentation |
Combine all sheets (tabs) from one or more Excel workbooks to a single table (an index is generated - first tab), padding is added (empty rows and columns) between the indvidual tables. This is useful for getting an overview of your data and avoiding having to click n tabs.
tabs2table( path, output = "compiled-comparisons.xlsx", columns = 3, return = FALSE, ... )
path |
[type: character] A path to a directory; this will read all |
output |
[type: character, default: "compiled-comparisons.xlsx"] The name of the output file - must have extension |
columns |
[type: numeric, default: 3] Integer defines the number of columns to split the combined tables over. This splits the data and thus avoids having to scroll over a large amount of tables. |
return |
[type: logical, default: FALSE] Boolean if TRUE returns the parsed data. |
... |
Extra arguments to passed to |
Returns if return arguemnt set to TRUE; a list of data.frame
s - might be useful for analysis - the primary output is the file output.
dir.create("./test") file.copy(system.file("extdata", "comparisons.xlsx", package = "derecksLabTools"), "./test") tabs2table( path = "./test", output = "output-file.xlsx", columns = 3, return = FALSE, overwrite = TRUE ) tabs2table( path = "./test/comparisons.xlsx", output = "output-file.xlsx", columns = 3, return = FALSE, overwrite = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.