process_seed_table {ipfr}R Documentation

Helper function to process a seed table

Description

Helper for ipu(). Strips columns from seed table except for the primary id and marginal column (as reflected in the targets tables). Also identifies factor columns with one level and processes them before mlr::createDummyFeatures() is called.

Usage

process_seed_table(df, primary_id, marginal_columns)

Arguments

df

the data.frame as processed by ipu() before this function is called.

primary_id

the name of the primary ID column.

marginal_columns

The vector of column names in the seed table that have matching targets.


[Package ipfr version 1.0.2 Index]