Description Usage Arguments Value Examples
View source: R/CorrelationIndex.R
This isn't really part of calculating the Phi coefficient, but is useful in finding a file which has been reorganised within a project. Imperfect as will return multiple paths if the filename is used twice locally.
1 | FilePathInTree(StringFileName)
|
StringFileName |
string filename |
Filepath including the input StringFileName for all files found in the vicinity. If it finds multiple files it returns a list of paths which can be accessed individually using [1], [2]...etc.
1 2 3 4 | #Will return as "character" all R related files in the directory you are currently working on
PathRfiles = FilePathInTree(".R")
#If there is only one file PathRfiles would return it, but with multiple PathRfiles[1] would return the first or only.
PathRfiles[1]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.