renaming {carpenter}R Documentation

Renaming row and header variables.

Description

Renaming row and header variables.

Usage

renaming(data, type = c("rows", "header"), replace)

Arguments

data

The table_draft object.

type

Whether to rename the row column or the headers.

replace

If type is 'row', needs to be a function (anonymous or otherwise) using the base::gsub() function to substitute patterns, words, characters, or symbols, etc. If type is 'header', needs to be a string of equal length as the header to replace the header variables.

Value

Adds to the table outline to rename the rows and/or header variables in the final table.

See Also

carpenter() for a list of all functions, examples, and accessing the introduction tutorial vignette.


[Package carpenter version 0.2.2 Index]