Skip to contents

Year i of the result is year index[i] of x, with its losses, sums insured, times and labels. Pass a group's index from reorder_groups() or reorder_groups_by_copula() (index = TRUE) to keep a class's events with its reordered totals; any index into the years works, so a resample with repeats does too.

Usage

permute_events(x, index)

Arguments

x

An event_set.

index

Years of x, 1-based.

Value

An event_set.

Examples

e <- event_set_from_long(c(2, 3, 3), c(50, 5, 60), 3)
events(permute_events(e, c(3, 1, 2)), 1)
#> [1]  5 60