duplas: Detects duplicated dates

Description Usage Arguments Value Examples

View source: R/duplas.R

Description

This function detects duplicated dates in the input time series

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#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) 

INQC documentation built on May 24, 2021, 5:07 p.m.