read.csv.epi: Data Input

Description Usage Arguments Value

View source: R/read.csv.epi.R

Description

In addition to read.csv functionality, this function checks whether the data file satisfies the EPI rules: 1) The first three columns must be 'code', 'iso' and 'country' following the Masterfile format. 2) All following columns must follow the convention 'NAME.YYYY' where NAME is the variable name and YYYY the year. 3) NAME must be consistent and same with what is in the file name.

Usage

1
read.csv.epi(file, root = NA, year = 2016, allow.na = TRUE)

Arguments

file

file that contains the data

root

root variable name to check that the data file has correct column names

year

most recent year. If there is a year in the data file that is after year, warning will be raised.

allow.na

if FALSE, warning will be raised if there are NAs in the file

Value

data frame read-in as by read.csv


elenakhusainova/EPI_Rpackage documentation built on April 17, 2020, 9:48 a.m.