Learn R Programming

FastUtils (version 0.2.1)

subtract: Subtract Two Numbers

Description

This function subtracts one number from another.

Usage

subtract(x, y)

Value

A numeric vector representing the difference between the input vectors.

Arguments

x

A numeric vector.

y

A numeric vector.

Examples

Run this code
# Subtract two numeric vectors
subtract(c(10, 20, 30), c(1, 2, 3))

Run the code above in your browser using DataLab