# Minimal, always-runnable example using base data.frame
df <- data.frame(
subject_ID = c("S1", "S2"),
time_0200 = c(2, 1),
time_0600 = c(5, 2),
time_1000 = c(4, 3),
time_1400 = c(3, 2),
time_1800 = c(1, 1),
time_2200 = c(0.5, 0.3),
stringsAsFactors = FALSE
)
compute_css(df)
Run the code above in your browser using DataLab