Skip to contents

Function to take a directory of EV files and reset the path. This works for EV files that have just an EK80 fileset, or that have the EK60 file set as the first fileset, and the EK80 as the second fileset. May want to eventually convert to calling "fileset1" and "fileset2" instead of EK60 and EK80. Written by RT 2022. Requires an excel file input hat says what the paths are Each row is a survey (survey_name), and each column is a path or file name

Usage

repath_EVdir(SurveyName, DirNameFile, ni = 1, ...)

Arguments

SurveyName

name of survey as in excel file

DirNameFile

excel file name of paths

ni

is an optional argument for which file to start with (default ni=1 is the first file).

Excel file has the following columns (with header names) Cal_File: calibration file name Base_Path: Orig_EV_Dir: Raw_Dir EK80_Cal_File EK80_Raw_Dir

Examples

DirNameFile="C:/rthomas/R/Rcode/EK60_EK80 conversion/EK60_Ek80_conv_updated/Directory Structure EK60 EK80 conversion updated.xlsx"
SurveyName='2019_US'
repath_EVdir(SurveyName,DirNameFile)
#> Error: `path` does not exist: ‘C:/rthomas/R/Rcode/EK60_EK80 conversion/EK60_Ek80_conv_updated/Directory Structure EK60 EK80 conversion updated.xlsx’