Learn R Programming

Zelig (version 4.2-1)

name.object: Name Elements of an Object

Description

Returns an object

Usage

name.object(obj, names)

Arguments

obj
a vector or matrix
names
a character-vector specifying names

Value

  • the original object, with a "colnames" or "names" equal to the parameter "names". If "names" is larger than "obj", the "names" parameter is truncated appropriately. If it is smaller, then the latter part of "obj" is replaced with a numbered generic column name