powered by
Checks for missing entries and generates a list of summary statistics about a dataset.
data_screening(data, years)
A list with seven entries:
years_min: The minimum value in the 'years' argument.
years_min
years_max: The maximum value in the 'years' argument.
years_max
data_min: The minimum value in the 'data' argument.
data_min
data_med: The median value in the 'data' argument.
data_med
data_max: The maximum value in the 'data' argument.
data_max
missing_years: An integer vector of years with no data.
missing_years
missing_count: The number of missing entries in the dataset.
missing_count
Numeric vector of observed annual maximum series values. Must be strictly positive, finite, and not missing.
Numeric vector of observation years corresponding to data. Must be the same length as data and strictly increasing.
data
data <- rnorm(n = 10, mean = 100, sd = 10) years <- c(1900, 1902, 1903, 1904, 1905, 1907, 1909, 1911, 1912, 1914) data_screening(data, years)
Run the code above in your browser using DataLab