# NOT RUN {
> #*** Note: I cannot provide working examples without
> #*** compromising security. Instead, I will try to
> #*** offer up sample code with the matching results
>
>
> #*** Create the connection object
> rcon <- redcapConnection(url=[YOUR_REDCAP_URL], token=[API_TOKEN])
>
> exportMappings(rcon)
arm_num unique_event_name form_name
1 1 event_1_arm_1 demographics
2 1 event_1_arm_1 all_the_different_options
3 1 event_1_arm_1 uploading_decimals
4 1 event_1_arm_1 calculations
5 1 follow_up_1_arm_1 calculations
6 1 follow_up_2_arm_1 calculations
7 2 experimental_inter_arm_2 demographics
8 2 experimental_inter_arm_2 uploading_decimals
9 2 experimental_follo_arm_2 all_the_different_options
10 2 experimental_follo_arm_2 uploading_decimals
11 2 experimental_follo_arm_2 calculations
12 10 baseline_arm_10 demographics
13 10 baseline_arm_10 uploading_decimals
>
> exportMappings(rcon, 1:2)
arm_num unique_event_name form_name
1 1 event_1_arm_1 demographics
2 1 event_1_arm_1 all_the_different_options
3 1 event_1_arm_1 uploading_decimals
4 1 event_1_arm_1 calculations
5 1 follow_up_1_arm_1 calculations
6 1 follow_up_2_arm_1 calculations
7 2 experimental_inter_arm_2 demographics
8 2 experimental_inter_arm_2 uploading_decimals
9 2 experimental_follo_arm_2 all_the_different_options
10 2 experimental_follo_arm_2 uploading_decimals
11 2 experimental_follo_arm_2 calculations
# }
Run the code above in your browser using DataLab