copyVector: Copy Vectors

Description Usage Arguments Details Value Examples

Description

This function copies the first vector in second one. This fucntion will work only if both vectors are of same length.

Usage

1

Arguments

x

Vector to be copied.

y

Target vector.

Details

If the length of source and target vectors are not same it generates an error.

Value

Returns y.

Examples

1
2
3
  x<-c(1,2,3,4)
  y<-c(NA,NA,NA,NA)
  copyVector(x,y)

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