Closed rsh52 closed 2 months ago
Awesome! What do you think about changing the variable order so
event_name
is afterredcap_event
?
Good call, done in recent commit:
> sprtbl$redcap_events
[[1]]
# A tibble: 4 × 4
redcap_event event_name redcap_arm arm_name
<chr> <chr> <int> <chr>
1 event_1 Event 1 1 Arm 1
2 event_2 Event 2 1 Arm 1
3 event_1 Event 1 2 Arm 2
4 event_3 Event 3 2 Arm 2
[[2]]
# A tibble: 1 × 4
redcap_event event_name redcap_arm arm_name
<chr> <chr> <int> <chr>
1 event_1 Event 1 1 Arm 1
[[3]]
# A tibble: 4 × 4
redcap_event event_name redcap_arm arm_name
<chr> <chr> <int> <chr>
1 event_1 Event 1 1 Arm 1
2 event_2 Event 2 1 Arm 1
3 event_1 Event 1 2 Arm 2
4 event_3 Event 3 2 Arm 2
Description
This PR adds an additional REDCap API call to
link_arms()
, which only applies to longitudinal REDCap projects. Now that REDCapR 1.2.0 is on CRAN we have access toredcap_event_read()
that allows us to directly retrieve REDCap event names/labels.Proposed Changes
List changes below in bullet format:
redcap_event_read()
to NAMESPACE,link_arms()
callslink_arms()
testsadd_event_mapping()
to include event name/label inredcap_event
column output of longitudinal supertibblesHere is a sample output:
Issue Addressed
Closes #67
PR Checklist
Before submitting this PR, please check and verify below that the submission meets the below criteria:
.RDS
) updated underinst/testdata/create_test_data.R
usethis::use_version()
Code Review
This section to be used by the reviewer and developers during Code Review after PR submission
Code Review Checklist