adjustNames: Adjust the names of the elements in a list of dataframes

View source: R/fit_model.R

adjustNamesR Documentation

Adjust the names of the elements in a list of dataframes

Description

Given a list of dataframes, this function pastes the colnames of all factors and characters to the elements in these columns. This is necessary to produces consisten results when fitting with lm or lmer. This function is borderline internal.

Usage

adjustNames(datalist, predictors)

Arguments

datalist

A list of dataframes.

predictors

A vector of predictors corresponding to some of the columnames in the list of dataframes for which the given adjustment will be performed if the columns corresponding to these predictors are characters or factors.

Value

The list of dataframes with adusted elements.


ludgergoeminne/MSqRob documentation built on Jan. 11, 2023, 1:32 p.m.