rowMax: Extracts the desired columns for analysis via regular...

rowMaxR Documentation

Extracts the desired columns for analysis via regular expression, then takes the maximum value row-wise. Ultimately resulting in a new column containing the max values.

Description

Extracts the desired columns for analysis via regular expression, then takes the maximum value row-wise. Ultimately resulting in a new column containing the max values.

Usage

rowMax(df, cn, regex)

Arguments

df

The dataframe to be analyzed.

cn

The column name (character string) of the Max column that is created after execution of this function.

regex

A regular expression used in identifying the columns of interest.

Value

df


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.