Learn R Programming

CTRE (version 0.1.0)

thin: Apply a higher threshold to a CTRE process

Description

Drop all but the k largest observations.

Usage

thin(ctre, k)

Arguments

ctre

A ctre object.

k

Discard all but the k largest magnitudes.

Value

A ctre object, with fewer (k) observations.

Examples

Run this code
# NOT RUN {
  library(magrittr)
  flares %>% ctre() %>% plot(log = 'y')
  flares %>% ctre() %>% thin(k=500) %>% plot(log = 'y')
# }

Run the code above in your browser using DataLab