Learn R Programming

SPOT (version 2.11.10)

diff0: diff0

Description

Calculate differences

Usage

diff0(x)

Arguments

x

input vector

Value

vector of differences

Details

Input vector length = output vector length

Examples

Run this code
# NOT RUN {
x <- 1:10
diff0(x)
# }

Run the code above in your browser using DataLab