Learn R Programming

tropAlgebra (version 0.1.1)

copyVector: 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.

Value

Returns y.

Details

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

Examples

Run this code
# NOT RUN {
  x<-c(1,2,3,4)
  y<-c(NA,NA,NA,NA)
  copyVector(x,y)
# }

Run the code above in your browser using DataLab