Subscript a Crystal Vector

DESCRIPTION:

Allows the user to extract or replace parts of a crystal.vector object by using crystal names or subscripts.

USAGE:

x[i, ...] 
x[i, ...] <- value 
x[[i, ...]] 
x[[i, ...]] <- value 
x$i 
x$i <- value 

REQUIRED ARGUMENTS:

x
an object inheriting from class "crystal.vector".
i
a vector of crystal names, positive integers, or logical vector. If i is a logical vector, it should have length equal to the number of crystals or to the number of coefficients in x. For [[, i must be an integer or a crystal name. For $, i must be a crystal name.

OPTIONAL ARGUMENTS:

value
replacement value for the relevant piece of the crystal.vector.

VALUE:

if i is a logical vector with the same length as the number of coefficients in x, then x[i] returns either a wp.molecule or cp.molecule object inheriting from the class molecule. Otherwise, x[i] returns an object containing all crystals corresponding to i. If the subscripted crystals are orthogonal, the returned object is of class "wpt" or "cpt". Otherwise, the returned object is of class "wp" or "cp". The object inherits from class "crystal.vector". x[[i]] and x$i return an object of class "wp.crystal" or "cp.crystal".

DETAILS:

See the chapter "More on Wavelet Analysis" of the S+WAVELETS User's Manual for details and examples of subscripting and assignment.