groupVec Constructor

DESCRIPTION:

Constructor function for groupVec class objects.

USAGE:

groupVec() 
groupVec(names, classes=<<see below>>, data=<<see below>>) 

REQUIRED ARGUMENTS:

The function can be called with no arguments, but if it is called with any, names must be supplied.

OPTIONAL ARGUMENTS:

names
column names for the object.
classes
column classes for the object. If not supplied, it will be initialized as ANY replicated to the length of names.
data
list for column data. If not supplied, it will be initialized to new(class) for each class in classes.

VALUE:

a new groupVec object constructed from the arguments, or an empty one if no arguments are supplied.

DETAILS:

This function creates a new groupVec object, putting the names (if supplied) into the .Data.names slot, the classes (if supplied) into the .Data.classes slot, and the data (if supplied) into the .Data slot.

SEE ALSO:

EXAMPLES:

groupVec() 
groupVec(c("my.nums", "my.chars"), c("numeric", "character")) 
groupVec(c("my.nums", "my.chars"), c("numeric", "character"), 
          list(c(1, 2, 3), c("a", "b", "c")))