mixedcirc_detectpeaks: Finds peak of a rhythm

View source: R/mixedcirc_detectpeaks.R

mixedcirc_detectpeaksR Documentation

Finds peak of a rhythm

Description

This function finds peak of a rhythm

Usage

mixedcirc_detectpeaks(
  phi,
  period = 24,
  min_time = 0,
  correct_period = T,
  correct_min = F
)

Arguments

phi

phase of a peak

period

period of circadian rhythm. Default: 24

min_time

minimum time considered

correct_period

if TRUE, period will be forced to be between the min and max time

correct_min

minimum time will be adjusted

Value

numeric - the peak time

Examples

data("circa_data")

results <- mixedcirc_detect(data_input = circa_data$data_matrix,
time = circa_data$time,
group = circa_data$group,
id = circa_data$id,
period = 24,
verbose = TRUE)
mixedcirc_detectpeaks(results[1][,5], min_time = 0)


PayamEmami/mixedcirc documentation built on Jan. 15, 2025, 5:36 p.m.