Basic REDCapR Operations
-2024-10-14
+2024-10-17
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.
+#> 24 variable metadata records were read from REDCap in 1.4 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.1 seconds. The http status code was 200.
-#> 1 rows were read from REDCap in 0.1 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.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-10-14 13:07:13.636119.
+#> Starting to read 5 records at 2024-10-17 23:06:02.395484.
#> 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.
ds_all_rows_all_fields # Inspect the returned dataset
@@ -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.1 seconds. The http status code was 200.
+#> 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.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.
+#> 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.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.
#> 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-10-14 13:07:15.443966.
+#> Starting to read 2 records at 2024-10-17 23:06:04.453999.
#> 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 5.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.
+#> 24 variable metadata records were read from REDCap in 1.4 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.1 seconds. The http status code was 200.
-#> 1 rows were read from REDCap in 0.1 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.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-10-14 13:07:13.636119.
+#> Starting to read 5 records at 2024-10-17 23:06:02.395484.
#> 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.
ds_all_rows_all_fields # Inspect the returned dataset
@@ -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.1 seconds. The http status code was 200.
+#> 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.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.
+#> 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.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.
#> 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-10-14 13:07:15.443966.
+#> Starting to read 2 records at 2024-10-17 23:06:04.453999.
#> 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 5.2 seconds. The http status code was 200.