Description Usage Arguments Value Examples
View source: R/download_tools.R
Subset a list of files based on filenames or regex strings.
1 | choose_files(files, selections = ".*", verbose = FALSE)
|
files |
A vector of file names. |
selections |
A vector of file names to choose from |
verbose |
If |
A vector of file names.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
file.list = parse_ftp_index("ftp://ftp.dfg.ca.gov/IEP_Zooplankton")
choose_files(file.list, c("CBMatrix", "MysidMatrix"))
# can also be used to select sheets in an excel file
f = download_file(paste0("https://github.com/",
"InteragencyEcologicalProgram/Status-and-Trends/blob/",
"9d1ba8ec3f475e96dbdd7788b45c26fb0fc55b0b/data/",
"EMPMysidBPUEMatrixAug2019.xlsx?raw=true"), "temp.xlsx")
sheets = readxl::excel_sheets(f)
choose_files(sheets, "Mysid")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.