user
Explain the following
---
Explain the following
---
_wide is 47 columns of survey data, one row per respondent, columns named q1_pre through q12_post.
df_long <- t_wide %>%
pivot_longer(
cols = starts_with("q"),
names_to = c("item", "time"),
names_sep = "_",
values_to = "score"
)