circadian_avg: Calculate average parameters during light or dark cycle.

Description Usage Arguments Value Examples

Description

This function takes the output of DSI_export_to_dataframe and calculates average telemetry parameters during the entire dark or light cycle.

Usage

1
circadian_avg(data, lights_on)

Arguments

data

A dataframe which is the output from DSI_export_to_dataframe.

lights_on

Time when the lights turn on. (24H)

Value

A list containing two dataframes, one for the averages when lights are off, and one for averages when lights are on. The first list element is "Dark Averages" when room lights are OFF, the second list element is "Light Averages" when room lights are ON.

Examples

1
circadian_avg(data = sample_BP_data, lights_on = 6)

andrewstiegler/telemetRy documentation built on May 1, 2021, 4:56 p.m.