dot-update_by: (Internal) Use 'by' to update 'StudySpecification' with new...

.update_byR Documentation

(Internal) Use by to update StudySpecification with new variable names

Description

Helper function used to update the variable names of a StudySpecification when user passes a by= argument to align variable names between data sets.

Usage

.update_by(specification, data, by)

Arguments

specification

A StudySpecification

data

Data set

by

named vector or list connecting names of unit of assignment/unitid/cluster variables in specification to unit of assignment/unitid/cluster variables in data. Names represent variables in the StudySpecification; values represent variables in the data.

Value

A StudySpecification with updated variable names


propertee documentation built on Aug. 22, 2025, 1:09 a.m.