expandVarAll: Expand all variables in a dataset based on predefined actions

View source: R/expandVarAll.R

expandVarAllR Documentation

Expand all variables in a dataset based on predefined actions

Description

This function automates the expansion of variables in a dataset according to a set of predefined actions. If no action is specified, it retrieves the dictionary of actions. It identifies all variables within the dataset that have been tagged for expansion and applies the expansion action to each.

Usage

expandVarAll(data, action = NULL)

Arguments

data

A data frame containing the variables to be expanded.

action

Optional; an action or set of actions to apply for expanding the variables. If NULL, the function will attempt to retrieve the dictionary of actions.

Value

Returns the modified data frame with the specified variables expanded.

Examples

## Not run: 
# Assuming 'data' is a data frame and 'action' is defined or NULL to use default actions
expandVarAll(data = data)

## End(Not run)

Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.