Learn R Programming

tropAlgebra (version 0.1.0)

scaleVector: Scalign of a Vector in Tropical Algebra

Description

This function returns the scaled vector Y by a value X.

Usage

scaleVector(x,y)

Arguments

x

A numeric value

y

A numeric vector

Value

Returns the scaled vector y by x

Details

e.g. Y<-c(1,2,3) x<-5 Now calling fucntiion: scaleVector(x,y) it returns [1] [2] [3] 6 7 8

Examples

Run this code
# NOT RUN {
x<-5
y<-c(1,2,3)
    scaleVector(x,y)
# }

Run the code above in your browser using DataLab