Skip to contents

This function subtracts two numeric vectors and returns a numeric vector

Usage

subtract(x, y)

Arguments

x

a numeric vector

y

a numeric vector

Value

a numeric vector

Examples

subtract(2, 3)
#> [1] -1
subtract(mtcars$mpg, mtcars$hp)
#>  [1]  -89.0  -89.0  -70.2  -88.6 -156.3  -86.9 -230.7  -37.6  -72.2 -103.8
#> [11] -105.2 -163.6 -162.7 -164.8 -194.6 -204.6 -215.3  -33.6  -21.6  -31.1
#> [21]  -75.5 -134.5 -134.8 -231.7 -155.8  -38.7  -65.0  -82.6 -248.2 -155.3
#> [31] -320.0  -87.6