duplas {INQC}R Documentation

Detects duplicated dates

Description

This function detects duplicated dates in the input time series

Usage

duplas(x)

Arguments

x

vector of dates in the ECA&D format (YYYYMMDD)

Value

vector with the list of positions which do not pass this QC test. If all positions pass the test, returns NULL

Examples

#Extract the ECA&D data file from the example data folder
path2inptfl<-system.file("extdata", "TX_SOUID132734.txt", package = "INQC")
#Read the data file
x<-readecad(input=path2inptfl,missing= -9999)[,3]
#Find all duplicated dates in the time series
duplas(x)

#Introduce the duplicated dates
x[31]<-'19610130'
#Find all duplicated dates in the time series
duplas(x) 

[Package INQC version 2.0.5 Index]