add_test_name_to_vars: Add Test Name to Variables

View source: R/final_variable_naming.R

add_test_name_to_varsR Documentation

Add Test Name to Variables

Description

Adds a name to all variables in the dataframe; can specify if the name appears at the beginning or end of the variables

Usage

add_test_name_to_vars(.data, test_name, location = 0)

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr).

test_name

name to be added to all variables; must be quoted (e.g. "name")

location

where to append the test_name; 0 = end of variables, 1 = beginning of variables; defaults to 0


NeuroShepherd/RankinLabTools documentation built on Sept. 23, 2022, 5:31 p.m.