Skip to contents

This function multiplies two numeric vectors and returns a numeric vector

Usage

multiply(x, y)

Arguments

x

a numeric vector

y

a numeric vector

Value

a numeric vector

Examples

multiply(2, 3)
#> [1] 6
multiply(mtcars$mpg, mtcars$hp)
#>  [1] 2310.0 2310.0 2120.4 2354.0 3272.5 1900.5 3503.5 1512.8 2166.0 2361.6
#> [11] 2189.4 2952.0 3114.0 2736.0 2132.0 2236.0 3381.0 2138.4 1580.8 2203.5
#> [21] 2085.5 2325.0 2280.0 3258.5 3360.0 1801.8 2366.0 3435.2 4171.2 3447.5
#> [31] 5025.0 2332.6