The replacement variants of "[" and "[[" do not change the structure
of the object and issue errors if the replacement value would result
in that. In situations where the checks are deemed redundant, direct
assignments to the corresponding slots may be used.
- [
signature(x = "raggedCoef", i = "missing", j = "missing", drop = "ANY")
:
- [
signature(x = "raggedCoef", i = "missing", j = "numeric", drop = "ANY")
:
- [
signature(x = "raggedCoef", i = "numeric", j = "missing", drop = "ANY")
:
- [
signature(x = "raggedCoef", i = "numeric", j = "numeric", drop = "ANY")
:
Indexing with "[" treats a raggedCoef
object as a matrix
with one row for each component and number of columns equal to
max(p)
. However, x[2]
is equivalent to x[2,]
which is different from the treatment of matrix
objects in
base R.
- [[
signature(x = "raggedCoef", i = "ANY", j = "missing")
:
- [[
signature(x = "raggedCoef", i = "ANY", j = "ANY")
:
"[["
extracts the corresponding element of slot a
.
- [[<-
signature(x = "raggedCoef", i = "ANY", j = "ANY", value = "numeric")
:
Replace the j-th element of i-th row with value
.
All arguments must be scalars.
- [[<-
signature(x = "raggedCoef", i = "ANY", j = "missing", value = "numeric")
:
- [<-
signature(x = "raggedCoef", i = "ANY", j = "missing", value = "numeric")
:
Replace the i-th row with value
. Argument i
must be
a scalar while the length of value
must be the same as that
of x@a[[i]]
. The methods for "[" and "[[" with this
signature coinside.
- [<-
signature(x = "raggedCoef", i = "ANY", j = "missing", value = "list")
:
The elements of value
must have the same lengths as the
elements they are replacing.
- [<-
signature(x = "raggedCoef", i = "ANY", j = "missing", value = "matrix")
:
This is essentially the reverse od the corresponding
non-replacement operator. value
must have at least as many
columns as the longest element of x
that is replaced.
- [<-
signature(x = "raggedCoef", i = "ANY", j = "ANY", value = "numeric")
: ...
- [<-
signature(x = "raggedCoef", i = "missing", j = "missing", value = "list")
: ...
- [<-
signature(x = "raggedCoef", i = "missing", j = "missing", value = "matrix")
: ...
- [<-
signature(x = "raggedCoef", i = "missing", j = "missing", value = "numeric")
: ...
- initialize
signature(.Object = "raggedCoef")
:
Creates objects of class raggedCoef
. This method is used
internally by new()
. Users should use new()
for
creation of objects from this class, see the examples.
- show
signature(object = "raggedCoef")
: ...
- mixFilter
signature(x = "numeric", coef = "raggedCoef", index = "numeric")
:
Apply a mixture filter to a time series.
- row_lengths
signature(x = "raggedCoef")
:
Gives x@p
, which is the same as lengths(x@a)
.
- length
signature(x = "raggedCoef")
:
Gives the total number of coefficients (sum(x@p)
).
- anyNA
signature(x = "raggedCoef")
:
Are there NA
's in x@a
?
- dim
signature(x = "raggedCoef")
:
The dimension of the object, when viewed as a matrix.
The presence of this method also ensures that nrow()
and related functions give the expected result.