powered by
Form row sums and means for numeric arrays.
RowSums (x, …) RowMeans(x, …) # S3 method for default RowSums(x, …) # S3 method for default RowMeans(x, …) # S3 method for tis RowSums(x, …) # S3 method for tis RowMeans(x, …)
an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame, or a tis time indexed series
tis
arguments passed along to rowSums or rowMeans.
rowSums
rowMeans
The tis-specific methods return a tis.
For other types of x, see rowMeans or rowSums.
x
rowMeans, and rowSums
# NOT RUN { mat <- tis(matrix(1:36, ncol = 3), start = latestJanuary()) cbind(mat, rowSums(mat), rowMeans(mat)) # }
Run the code above in your browser using DataLab