CheckForMapping: Checks whether the mapping is consistent within a data frame.

Description Usage Arguments Value Note

View source: R/utils_assert.R

Description

Checks whether the mapping is consistent within a data frame.

Usage

1
CheckForMapping(x, from, to)

Arguments

x

a data frame.

from

(character) vector of column names.

to

(character) vector of column names. Typically these are different from those in 'from'.

Value

If all tests pass, returns TRUE invisibly. Otherwise, an 'assertError' is thrown.

Note

Checks that no rows in 'x[from]' map to two different values of 'x[to]'.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.