R: Integrate using trapezoidal rule

trapz {RSEIS} | R Documentation

## Integrate using trapezoidal rule

### Description

Integrate using trapezoidal rule

### Usage

    trapz(y, dt)

### Arguments

`y` | Input signal
`dt` | sample interval time, seconds

### Value

vector: Integrated signal

### Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

### Examples

    x <- rnorm(100)
    trapz(x, 0.01)

[Package RSEIS version 3.7-4 Index]