rename_per_fun: Rename objects using speicified function

Description Usage Arguments Value

Description

Rename objects using speicified function

Usage

1
rename_per_fun(idf, class, fun = toCamelCase, strict = FALSE)

Arguments

idf

An eplusr::Idf object

class

A character vector of classes names

fun

A function to take the corresponding object names as input, process them and return a character vector with the same length. fun can be a named character vector. In this case, when specified object names match element value, the element name will be used as the new name. If NULL, nothing will be done. Default: toCamelCase

strict

If TRUE, an error will be issued if the newly generated object names contain duplications. If FALSE, make.unique will be called to make sure there are no duplications. Default: FALSE

Value

The modified eplusr::Idf object, invisibly


hongyuanjia/eplusbuildr documentation built on Jan. 11, 2020, 2:05 a.m.