RepoFileToStQList: Produce an object of class 'StQList' from files with...

Description Usage Arguments Value Examples

View source: R/RepoFileToStQList.R

Description

RepoFileToStQList returns an object of class StQList from files with key-value pair structure.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
RepoFileToStQList(
  SurveyCode,
  RepoPath,
  FileType,
  IniPeriod,
  FinPeriod,
  Base,
  Rot = FALSE,
  includeFI = TRUE,
  perl = FALSE,
  sep = "@@",
  encoding = "unknown"
)

Arguments

SurveyCode

Character vector of length 1 with the code of each survey.

RepoPath

Character vector of length 1 with the path of the repository from which files are to be read.

FileType

Character vector of length 1 with the type of the file to be read (FI, FP, FF, FG FD, FL or FT).

IniPeriod

Character vector of length 1 with the initial time period to be read (in the repository notation).

FinPeriod

Character vector of length 1 with the final time period to be read (in the repository notation).

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.

Rot

Logical vector of length 1 indicating whether rotated sample files are to be included (default value FALSE).

includeFI

Logical vector of length 1 indicating whether ID variables will be included in the slot of class VNC of the DD object.

perl

Logical vector of length 1 indicating whether Perl is installed in the system or not.

sep

Logical vector of length 1 containing the combination of characters used as separator in the input file (default value @).

encoding

Default value is "unknown". Other possible options are "UTF-8" and "Latin-1". Note: it is not used to re-encode the input, rather enables handling of encoded strings in their native encoding.

Value

Object of class StQList.

Examples

1
2
3
4
## Not run: 
 RepoFileToStQList('E30163', 'T:/E30163/', 'FF', 'MM022016', 'MM032016', '', perl = TRUE)

## End(Not run)

david-salgado/RepoReadWrite documentation built on Oct. 3, 2021, 1:09 p.m.