test_unique_observations: Test Unique Observations for Approximation functions.

Description Usage Arguments Details Value

View source: R/test_unique_observations.R

Description

Tidy datasets have observations that are unique. They must have on of the three types of values: an actual, an value_typed or a missing value.

Usage

1
test_unique_observations(x, stop_on_error = FALSE)

Arguments

x

A data frame or a dataset table to test.

stop_on_error

Defaults to TRUE when the code stops with an error message. If FALSE, it displays non-unique values.

Details

Approximation and other filling techniques require unique observations.

This is an internal function and can give either a warning or

Value

TRUE if the test is met, otherwise warning if stop_on_error = FALSE and returns FALSE or stops with an error if stop_on_error = TRUE.


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