dataset_reduce: Reduce dataset

Description Usage Arguments Details Value Examples

Description

Find the largest congruent sub-dataset of the dataset.

Usage

1
dataset_reduce(x, return = "info")

Arguments

x

A dataset in wide format.

return

Any of 'data' for the largest congruent dataset, 'info' for the properties of the largest congruent dataset, or 'both'.

Details

The largest congruent sub-dataset of a dataset is the largest martrix of time and geo obersvations that do not contain missing values.

Value

A new data frame with the largest congruent dataset, or a info about the congruent dataset, or a list containing both outputs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
tr1 <- data.frame (
    time = c(2010:2020),
    AT = c(NA, 1:10),
    BG = c(NA, NA, 1:6, NA, 8:9),
    CZ = c(NA, 1:9, NA),
    DK = c(rep(NA,10), 1),
    EL = c(rep(NA, 11))
)
dataset_reduce(tr1, return = "both")
}

dataobservatory-eu/dataobservatory documentation built on Jan. 7, 2022, 8:55 p.m.