Description Usage Arguments See Also Examples
Creates a data frame using information from paths and file names. It searches through the directories in order to create the path names of the files. It accepts either a template or a regular expression and column names.
1 2 3 4 5 |
paths |
character vector with zero or more paths that will be searched. |
template |
template character string, e.g.
|
regexp |
regular expression used to parse the file names.
Only one of the arguments |
colnames |
character vector containing the names of the columns in the
data frame. Not required if using |
missing |
value to use for unmatched optional template elements or regexp capturing groups. |
recursive |
if |
... |
Additional arguments pass to |
1 2 3 4 5 6 7 8 9 | path1 <- system.file(package = "dirdf", "examples", "dataset_1")
template1 <- "Year-Month-Day_Assay_Plasmid-Type-Fraction_WellNumber?.extension"
files1 <- dirdf(path1, template = template1)
print(files1)
path2 <- system.file(package = "dirdf", "examples", "dataset_2")
template2 <- "Date_Assay_Experiment_WellNumber?.extension"
files2 <- dirdf(path2, template = template2)
print(files2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.