Skip to contents

Subset Around Event

Usage

subset_around_event(data, var, from, time_var, time_radius = FALSE)

Arguments

data

Data frame

var

Variable to center around

from

Reference point (e.g. "Day"/"Night")

time_var

Which variable represents time

time_radius

Time around point

Value

Subset of data frame around point in time