copyVector {tropAlgebra}R Documentation

Copy Vectors

Description

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

Usage

copyVector(x,y)

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

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

[Package tropAlgebra version 0.1.1 Index]