is_Nto1_concordance: Checks if a given concordance matrix or lookup table contains...

View source: R/classifications.R

is_Nto1_concordanceR Documentation

Checks if a given concordance matrix or lookup table contains ONLY n-to-1 concordances (i.e. only aggregation needed, no disaggregation)

Description

Checks if a given concordance matrix or lookup table contains ONLY n-to-1 concordances (i.e. only aggregation needed, no disaggregation)

Usage

is_Nto1_concordance(x, origin = 1)

Arguments

x

either concordance matrix (check if is_concordance_matrix(x) delivers TRUE) or a look-up table with 2 columns

origin

if x is a concordance-matrix: either 1 (if the rows indicate the original classification), or 2 (if it is the columns). If x is a look-up table: the argument indicates the column number (or name)

Value

boolean


simschul/my.utils documentation built on June 29, 2023, 6:50 a.m.