auto_encode_categorical: Automatically encode categorical variables

View source: R/matching_preprocessing.R

auto_encode_categoricalR Documentation

Automatically encode categorical variables

Description

Converts categorical variables to numeric representations suitable for matching. Currently supports binary variables (0/1) and ordered factors.

Usage

auto_encode_categorical(left, right, var)

Arguments

left

Data frame of left units

right

Data frame of right units

var

Variable name to encode

Value

List with encoded left and right columns, plus encoding metadata


couplr documentation built on Jan. 20, 2026, 5:07 p.m.