Description Usage Arguments Details Value Author(s) References See Also
Give the paths to identically named files distinguished by enclosing subdirectories, themselves enclosed by a directory bearing the file name.
1 | variants(x, path)
|
x |
a vector of file names |
path |
a directory enclosing subdirectories bearing the name(s) in |
Consider a file tree where identically named variants of a file are stored in
distinguishing subdirectories, e.g. directories whose names contain timestamps.
The enclosing directory itself bears the same name as the file in question.
Thus, one variant of the file may be located at path/file/var1/file and a second
at path/file/var2/file. Given file
(x
) and path
, variants
returns both of these. If x
is of length greater than one, all variants
are concatenated into a single character vector.
character
Tim Bergsma
http://metrumrg.googlecode.com
latest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.