ztct_string: Convert Zeitgeber Time Points to Character Strings with...

View source: R/pwutilityfunctions.R

ztct_stringR Documentation

Convert Zeitgeber Time Points to Character Strings with Custom Prefix

Description

Translates numeric Zeitgeber time points into character strings formatted as "prefix<time>_<replicate>".

Usage

ztct_string(time_points, prefix = "ZT")

Arguments

time_points

A numeric vector of Zeitgeber time points.

prefix

A character string to prefix each time point. Defaults to "ZT".

Value

A character vector with formatted Zeitgeber strings.

Examples

ztct_string(c(0, 0, 2, 2, 4, 4))
# Returns: "ZT0_1" "ZT0_2" "ZT2_1" "ZT2_2" "ZT4_1" "ZT4_2"

ztct_string(c(0, 0, 2, 2, 4, 4), prefix = "CT")
# Returns: "CT0_1" "CT0_2" "CT2_1" "CT2_2" "CT4_1" "CT4_2"


powestermark/pwrutilities documentation built on Dec. 28, 2024, 4:44 a.m.