copyMatrix: Copy Matrices

Description Usage Arguments Details Value Examples

Description

This function copies the first matrix in second one. Thhis fucntion will work only if both matrices are of same size.

Usage

1

Arguments

X

A matrix to be copied.

Y

Target Matrix.

Details

If the size of source and target matrices are not same it generates an error.

Value

Returns Y Matrix.

Examples

1
2
3
X<-matrix(c('a','b','c','d'),nrow=2, ncol=2)
Y<-matrix(c(NA,NA,NA,NA),nrow=2, ncol=2)
copyMatrix(X,Y)

tropAlgebra documentation built on May 2, 2019, 7:29 a.m.