Rename objects using speicified function

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