transformVarNames {reporttools}R Documentation

Generate R-code assigning each variable in a data frame to its name

Description

This function generates a one-column matrix, containing strings of assignments of the variables in a data frame.

Usage

transformVarNames(dat, name)

Arguments

dat

Dataframe.

name

Name of data frame.

Value

One-column matrix of strings containing the assignments.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Examples

labpar1 <- rnorm(50)
labor.param2 <- rgamma(50, 2, 1)
dat <- data.frame(labpar1, labor.param2)
transformVarNames(dat, name = "dat")

[Package reporttools version 1.1.3 Index]