| colSums {salad} | R Documentation | 
Row and column sums and means
Description
Method extending to dual matrices the corresponding methods for dual matrices.
Usage
rowSums.dual(x, na.rm = FALSE, dims = 1, ...)
## S4 method for signature 'dual'
rowSums(x, na.rm = FALSE, dims = 1, ...)
colSums.dual(x, na.rm = FALSE, dims = 1, ...)
## S4 method for signature 'dual'
colSums(x, na.rm = FALSE, dims = 1, ...)
rowMeans.dual(x, na.rm = FALSE, dims = 1, ...)
## S4 method for signature 'dual'
rowMeans(x, na.rm = FALSE, dims = 1, ...)
colMeans.dual(x, na.rm = FALSE, dims = 1, ...)
## S4 method for signature 'dual'
colMeans(x, na.rm = FALSE, dims = 1, ...)
Arguments
| x | a dual matrix or array | 
| na.rm | if 'TRUE', missing values are removed | 
| dims | which dimensions are regarded as rows and cols | 
| ... | extra parameters (ignored) | 
Value
a dual object (usually a dual vector).
Examples
x <- dual( c(1,2) )
x <- cbind(x, 2*x+1)
rowSums(x)
d(rowSums(x), "x1")
[Package salad version 1.0 Index]