report_miss: Report 'NA_real_' values inside a table.

Description Usage Arguments Value Examples

View source: R/ff_report_miss.R

Description

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

Usage

1
report_miss(x, col_name = "all")

Arguments

x

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

col_name

string vector with the column(s) name(s) to report. By default the function will report all numeric columns.

Value

A list containing a data frame (one per col_name) 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
# read guido daily streamflow records
path <- system.file('extdata', 'snih_qd_guido.xlsx',
        package = 'hydrotoolbox')

# load raw data
qd_guido <-
  read_snih(path = path, by = 'day', out_name = 'q(m3/s)') %>%
  mov_avg(k = 5, out_name = 'q_smooth')

# get the data report
qd_guido %>%
  report_miss()

hydrotoolbox documentation built on July 9, 2021, 1:06 a.m.