report_miss_data: Report 'NA_real_' values

Description Usage Arguments Value Examples

View source: R/report_miss_data.R

Description

Creates a data frame with reported dates and number of times-step of missing or not recorded data.

Usage

1
report_miss_data(df, Lang = "spanish")

Arguments

df

data frame with hydro-meteo data. First column is date and the second the numeric vector to be reported.

Lang

string with output column name language: 'spanish' (default) or 'english'.

Value

A data frame with three columns: start-date, end-date and number of missing time steps.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Create BDHI hydro-met station
guido <- create_hydroMet(class_name = 'BDHI')

# List with meteorological variables (slots in BDHI's object)
cargar <- list('precip', 'Qmd', 'Qmm')

# Now assign as names the files
hydro_files   <- list.files( system.file('extdata', package = "hydroToolkit"), pattern = 'Guido' )
names(cargar) <- hydro_files

# Build the object with the met records
guido <- build_hydroMet(obj = guido, slot_list = cargar, 
               path = system.file('extdata', package = "hydroToolkit") )
               
# Get mean daily discharge and report miss data
Qmd  <- get_hydroMet(obj = guido, name = 'Qmd')[[1]]
miss <- report_miss_data(df = Qmd)
 

hydroToolkit documentation built on July 2, 2020, 1:04 a.m.