collectData | R Documentation |
Collect data from different csv files.
collectData(folderName, fileType = NULL, range = NULL, sheetIndex = 1)
folderName |
A string showing the path of the folder holding different csv files. |
fileType |
A string showing the file type, e.g. "txt", "csv", "excel". |
range |
A vector containing startRow, endRow, startColumn, endColumn, e.g., c(2,15,2,3) |
sheetIndex |
A number showing the sheetIndex in the excel file, if fileType is excel, sheetIndex has to be provided, default is 1. |
The collected data from different files in the folder.
#use internal data as an example.
folder <- file.path(path.package("hyfo"), 'extdata')
# file may vary with different environment, it if doesn't work, use local way to get
# folder path.
a <- collectData(folder, fileType = 'csv', range = c(10, 20, 1,2))
# More examples can be found in the user manual on https://yuanchao-xu.github.io/hyfo/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.