append_colname_prefix: m2c2R

View source: R/append_colname_prefix.R

append_colname_prefixR Documentation

m2c2R

Description

m2c2R

Usage

append_colname_prefix(data, group_var, var_prefix)

Arguments

data

Name of tibble or data frame

group_var

Name of grouping variable, in quotes (for example: "participant_id")

var_prefix

Prefix to be added to the name of each variable (for example: "study1_")

Details

This function adds a prefix to variable names in a specified tibble or data frame.

Value

Returns input data frame with modified variable names (for example: "study1_participant_id."

Author(s)

Nelson Roque, Nelson.Roque@ucf.edu


nelsonroque/m2c2R documentation built on Oct. 8, 2022, 7:50 a.m.