thin: Apply a higher threshold to a CTRE process

Description Usage Arguments Value Examples

View source: R/extract.R

Description

Drop all but the k largest observations.

Usage

1
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

1
2
3
  library(magrittr)
  flares %>% ctre() %>% plot(log = 'y')
  flares %>% ctre() %>% thin(k=500) %>% plot(log = 'y')

CTRE documentation built on May 2, 2019, 9:34 a.m.