weirddate: Locate impossible dates

Description Usage Arguments Value Examples

View source: R/weirdate.R

Description

This function is intended to flag impossible dates (e.g., 19990230 or 29990112, etc)

Usage

1

Arguments

x

two-columns dataframe. First column is date in the ECA&D format (yyyymmdd), second columns is value

Value

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:4]
#Find all suspicious positions in the time series
weirddate(x)

#Introduce the weird dates
x[31,1]<-'19610132'
#Find all suspicious positions in the time series
weirddate(x) 

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