get.file.path {varitas} | R Documentation |
get.file.path
Description
Get absolute path to sample-specific file for one or more samples
Usage
get.file.path(sample.ids, directory, extension = NULL,
allow.multiple = FALSE, allow.none = FALSE)
Arguments
sample.ids |
Vector of sample IDs to match filename on |
directory |
Path to directory containing files |
extension |
String giving extension of file |
allow.multiple |
Boolean indicating whether to allow multiple matching files. Defaults to false, which throws an error if the query matches more than one file. |
allow.none |
Boolean indicating whether to allow no matching files. Defaults to false, which throws an error if the query does not match any files. |
Value
Paths to matched files
[Package varitas version 0.0.2 Index]