RepoNextFileVerNumber: Create the name of the next version of a file

Description Usage Arguments Value Examples

View source: R/RepoNextFileVerNumber.R

Description

RepoNextFileVerNumber returns the name of the next version of a file in a directory.

This function takes every file corresponding to the input file sort FileType for the input periods Periods in the input directory Path and generates for each of them the name of their next version.

Usage

1
RepoNextFileVerNumber(Periods, Path, FileType, Base, DorP = "D")

Arguments

Periods

Character vector with time periods included in the file names.

Path

Character vector with the path of the search directory.

FileType

Character vector with the sort (FF, FD, FG, DD, ...) of the files.

Base

Character vector of length 1 with the year ('aaaa') of the base to which data are referred. If it has no sense, "Base" is a empty character vector.

DorP

Character vector with the type of version (D or P) of the files.

Value

It returns a character vector of length equal to the length of Periods with the next version of each input file name.

Examples

1
2
3
4
## Not run: 
RepoNextFileVerNumber(c('MM012016'), 'C:/Repo/E30183', 'FF', '2015')

## End(Not run)

david-salgado/RepoReadWrite documentation built on July 19, 2020, 1:42 a.m.