Extract or Replace Parts of an Object

DESCRIPTION:

Extract parts of a Gauss, Loglin, or cgm object. If on the left side of an assignment, then that portion of the object is changed.

USAGE:

x[i, ] 
x[i, j, drop=T] 
x[i, j] <- value 

REQUIRED ARGUMENTS:

x
an object of class "Gauss", "Loglin", or "cgm".

OPTIONAL ARGUMENTS:

i, j
subscript expressions, used to identify which elements to extract or replace. The expressions may be empty (meaning all possible subscripts), logical, numeric, or character. The indices of the rows to be accessed. This may be a character string, a vector of booleans, a vector of indices, or a vector of negative indices, just as for a matrix object.
drop
logical flag, should dimensions of length 1 be dropped, in which case the result is an ordinary vector.

VALUE:

if j is supplied then an ordinary vector or matrix. If a single row is subscripted and drop=TRUE, then an ordinary vector. Otherwise an object of the same class and attributes as the original object (except for dim and dimnames).

DETAILS:

These functions are methods for the generic extraction operator "[". There are currently no corresponding methods for the generic replacement operator "[<-" -- the default method is used instead.

If columns are subscripted, then the result would not make sense as a "Gauss" , "Loglin" , or "cgm" object, so an ordinary vector or matrix is returned.

EXAMPLES:

crime.EM <- emLoglin(crime, frequency = count)
crime.EM$paramIter[1:2, ]
cholesterol.EM <- emGauss(cholesterol)
cholesterol.EM$paramIter[1:2, ]
cholesterol.DA <- daGauss(cholesterol.EM,
                          control = list(save = 101:500))
# Extract estimates labeled 400 to 500 
cholesterol.DA$paramIter[paste(400:500), ]