renVar: Rename statistical variable names (IDDD) in an object

Description Usage Arguments Value Examples

Description

renVar rename variables in a object keeping the rest of the object intact.

This method returns the input object with the specified variable names in the input parameter VarNames renamed with the names in the input parameter NewVarNames. Variables are renamed in all slots. Old names are dropped out.

Usage

1
2
3
4
renVar(object, VarNames, NewVarNames)

## S4 method for signature 'StQ,character,character'
renVar(object, VarNames, NewVarNames)

Arguments

object

Input object of class StQ.

VarNames

Character vector with the variable names to be renamed.

NewVarNames

Character vector with the new variable names.

Value

Object with the same class as the input object and all specified variable names duly renamed in all slots.

Examples

1
2
data(ExampleStQ)
renVar(ExampleStQ, 'Stocks', 'NewStocks')

david-salgado/StQ documentation built on Aug. 12, 2021, 3:23 p.m.