Basic REDCapR Operations
-2024-09-06
+2024-09-07
Source:vignettes/BasicREDCapROperations.Rmd
BasicREDCapROperations.Rmd
Read all records and fields
# Return all records and all variables.
ds_all_rows_all_fields <- redcap_read(redcap_uri = uri, token = token)$data
-#> 24 variable metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
-#> The data dictionary describing 17 fields was read from REDCap in 0.1 seconds. The http status code was 200.
-#> 3 instrument metadata records were read from REDCap in 0.1 seconds. The http status code was 200.
-#> 1 rows were read from REDCap in 0.1 seconds. The http status code was 200.
-#> 2 data access groups were read from REDCap in 0.1 seconds. The http status code was 200.
-#> 5 records and 1 columns were read from REDCap in 0.2 seconds. The http status code was 200.
-#> Starting to read 5 records at 2024-09-06 21:18:21.201036.
+#> 24 variable metadata records were read from REDCap in 0.3 seconds. The http status code was 200.
+#> The data dictionary describing 17 fields was read from REDCap in 0.2 seconds. The http status code was 200.
+#> 3 instrument metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 1 rows were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 2 data access groups were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 5 records and 1 columns were read from REDCap in 0.3 seconds. The http status code was 200.
+#> Starting to read 5 records at 2024-09-07 01:07:09.145935.
#> Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
-#> 5 records and 25 columns were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 5 records and 25 columns were read from REDCap in 0.3 seconds. The http status code was 200.
ds_all_rows_all_fields # Inspect the returned dataset
#> # A tibble: 5 × 25
#> record_id name_first name_last address telephone email dob age sex
@@ -144,15 +144,15 @@ Read a subset of the records= token,
records = desired_records
)$data
-#> 24 variable metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 24 variable metadata records were read from REDCap in 0.3 seconds. The http status code was 200.
#> The data dictionary describing 17 fields was read from REDCap in 0.2 seconds. The http status code was 200.
#> 3 instrument metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
#> 1 rows were read from REDCap in 0.2 seconds. The http status code was 200.
#> 2 data access groups were read from REDCap in 0.2 seconds. The http status code was 200.
-#> 2 records and 1 columns were read from REDCap in 0.2 seconds. The http status code was 200.
-#> Starting to read 2 records at 2024-09-06 21:18:23.440895.
+#> 2 records and 1 columns were read from REDCap in 0.3 seconds. The http status code was 200.
+#> Starting to read 2 records at 2024-09-07 01:07:11.537467.
#> Reading batch 1 of 1, with subjects 1 through 3 (ie, 2 unique subject records).
-#> 2 records and 25 columns were read from REDCap in 0.2 seconds. The http status code was 200.
# Return all records and all variables.
ds_all_rows_all_fields <- redcap_read(redcap_uri = uri, token = token)$data
-#> 24 variable metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
-#> The data dictionary describing 17 fields was read from REDCap in 0.1 seconds. The http status code was 200.
-#> 3 instrument metadata records were read from REDCap in 0.1 seconds. The http status code was 200.
-#> 1 rows were read from REDCap in 0.1 seconds. The http status code was 200.
-#> 2 data access groups were read from REDCap in 0.1 seconds. The http status code was 200.
-#> 5 records and 1 columns were read from REDCap in 0.2 seconds. The http status code was 200.
-#> Starting to read 5 records at 2024-09-06 21:18:21.201036.
+#> 24 variable metadata records were read from REDCap in 0.3 seconds. The http status code was 200.
+#> The data dictionary describing 17 fields was read from REDCap in 0.2 seconds. The http status code was 200.
+#> 3 instrument metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 1 rows were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 2 data access groups were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 5 records and 1 columns were read from REDCap in 0.3 seconds. The http status code was 200.
+#> Starting to read 5 records at 2024-09-07 01:07:09.145935.
#> Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
-#> 5 records and 25 columns were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 5 records and 25 columns were read from REDCap in 0.3 seconds. The http status code was 200.
ds_all_rows_all_fields # Inspect the returned dataset
#> # A tibble: 5 × 25
#> record_id name_first name_last address telephone email dob age sex
@@ -144,15 +144,15 @@ Read a subset of the records= token,
records = desired_records
)$data
-#> 24 variable metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
+#> 24 variable metadata records were read from REDCap in 0.3 seconds. The http status code was 200.
#> The data dictionary describing 17 fields was read from REDCap in 0.2 seconds. The http status code was 200.
#> 3 instrument metadata records were read from REDCap in 0.2 seconds. The http status code was 200.
#> 1 rows were read from REDCap in 0.2 seconds. The http status code was 200.
#> 2 data access groups were read from REDCap in 0.2 seconds. The http status code was 200.
-#> 2 records and 1 columns were read from REDCap in 0.2 seconds. The http status code was 200.
-#> Starting to read 2 records at 2024-09-06 21:18:23.440895.
+#> 2 records and 1 columns were read from REDCap in 0.3 seconds. The http status code was 200.
+#> Starting to read 2 records at 2024-09-07 01:07:11.537467.
#> Reading batch 1 of 1, with subjects 1 through 3 (ie, 2 unique subject records).
-#> 2 records and 25 columns were read from REDCap in 0.2 seconds. The http status code was 200.