From cd6f81035b3baaa665e9c6e3134360664af80195 Mon Sep 17 00:00:00 2001 From: Richard Hanna Date: Wed, 11 Sep 2024 13:48:14 -0400 Subject: [PATCH] Switch colname order --- R/read_redcap.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/read_redcap.R b/R/read_redcap.R index f34f9204..874540ce 100644 --- a/R/read_redcap.R +++ b/R/read_redcap.R @@ -451,7 +451,7 @@ add_event_mapping <- function(supertbl, linked_arms) { event_info <- linked_arms %>% add_partial_keys(.data$unique_event_name) %>% select( - redcap_form_name = "form", "redcap_event", "redcap_arm", "arm_name", "event_name" + redcap_form_name = "form", "redcap_event", "event_name", "redcap_arm", "arm_name" ) %>% nest(redcap_events = !"redcap_form_name")