Major update. New functions and improvements. See NEWS.md.

This commit is contained in:
AG Damsbo 2023-03-07 15:38:28 +01:00
commit 9f68e27f5a
20 changed files with 443 additions and 97 deletions

View file

@ -4,18 +4,25 @@
\alias{redcap_wider}
\title{Redcap Wider}
\usage{
redcap_wider(list, names.glud = "{.value}_{redcap_event_name}_long")
redcap_wider(
list,
event.glue = "{.value}_{redcap_event_name}",
inst.glue = "{.value}_{redcap_repeat_instance}"
)
}
\arguments{
\item{list}{A list of data frames.}
\item{names.glud}{A string to glue the column names together.}
\item{event.glue}{A dplyr::glue string for repeated events naming}
\item{inst.glue}{A dplyr::glue string for repeated instruments naming}
}
\value{
The list of data frames in wide format.
}
\description{
Converts a list of REDCap data frames from long to wide format.
Handles longitudinal projects, but not yet repeated instruments.
}
\examples{
list <- list(data.frame(record_id = c(1,2,1,2),