View source: R/pwutilityfunctions.R
ztct_string | R Documentation |
Translates numeric Zeitgeber time points into character strings formatted as "prefix<time>_<replicate>".
ztct_string(time_points, prefix = "ZT")
time_points |
A numeric vector of Zeitgeber time points. |
prefix |
A character string to prefix each time point. Defaults to "ZT". |
A character vector with formatted Zeitgeber strings.
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.