FilePathInTree: Looks for a filename in the current folder and then expands...

Description Usage Arguments Value Examples

View source: R/CorrelationIndex.R

Description

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.

Usage

1
FilePathInTree(StringFileName)

Arguments

StringFileName

string filename

Value

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.

Examples

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]

Zabados/PhiCor documentation built on Oct. 9, 2021, 1:24 a.m.