added sanitize to clean up split

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-02-06 14:16:09 +01:00
parent 4f47c2ac5d
commit 02b9c7ffe7

View File

@ -35,7 +35,7 @@ redcapcast_meta |> gt::gt()
list <- list <-
REDCap_split(records = redcapcast_data, REDCap_split(records = redcapcast_data,
metadata = redcapcast_meta, metadata = redcapcast_meta,
forms = "repeating") forms = "repeating")|> sanitize_split()
str(list) str(list)
``` ```
@ -43,7 +43,7 @@ str(list)
list <- list <-
REDCap_split(records = redcapcast_data, REDCap_split(records = redcapcast_data,
metadata = redcapcast_meta, metadata = redcapcast_meta,
forms = "all") forms = "all") |> sanitize_split()
str(list) str(list)
``` ```
@ -60,7 +60,7 @@ The function works very similar to the `REDCapR::redcap_read()` in allowing to s
## Pivotting to wider format ## Pivotting to wider format
```{r} ```{r}
# redcap_wider(ds) redcap_wider(list) |> str()
``` ```