In R, indexing starts at one. But, in C++ indexing starts at zero. These functions do the translation for you so you can think in R terms.
In R, indexing starts at one. But, in C++ indexing starts at zero. This function does the translation for you so you can think in R terms.
Methods of summary functions include max, min, range, prod, sum,
any, and all.
Usage
# S4 method for class 'Rcpp_ParameterVector,ANY,ANY,ANY'
x[i, j] <- value
# S4 method for class 'Rcpp_ParameterVector,numeric,ANY,ANY'
x[i]
# S4 method for class 'Rcpp_ParameterVector'
length(x)
# S4 method for class 'Rcpp_ParameterVector'
sum(x)
# S4 method for class 'Rcpp_ParameterVector'
dim(x)
# S4 method for class 'Rcpp_ParameterVector'
Summary(x)Value
For [<-, the index i of object x is set to value.
For [, the index i of object x is returned.
For length(), the length of object x is returned as an integer.
For sum(), the sum of object x is returned as a numeric value.
For dim(), the dimensions of object x is returned as a single integer
because there is only one dimension to return for a vector.
Summary returns a single or two numeric or logical values.