transformVarNames2: Generate R-code assigning each variable in a data frame to...

Description Usage Arguments Value Author(s) Examples

View source: R/transformVarNames2.r

Description

This function generates a one-column matrix, containing strings of assignments of the variables in a data frame, to be used with with in plyr, e.g.

Usage

1

Arguments

nams

Variable names, typically colnames applied to a 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

1
2
3
4
labpar1 <- rnorm(50)
labor.param2 <- rgamma(50, 2, 1)
dat <- data.frame(labpar1, labor.param2)
transformVarNames2(colnames(dat))

reporttools documentation built on Oct. 12, 2021, 5:06 p.m.