Skip to contents

Applies the precedence described in infer_dataset_class() for one class of data, subject or device.

Usage

infer_class_by_structure(dataset, id_vars, classes)

Arguments

dataset

A data frame

Default value

none

id_vars

Character vector of the variables identifying the unit of the class (the subject keys, or STUDYID and SPDEVID)

Default value

none

classes

Named character vector of the class to return for each structure: tte, bds, occds, and level (one record per unit)

Default value

none

Value

A character scalar: one of classes, "other", or NA.