mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
Major update. New functions and improvements. See NEWS.md.
This commit is contained in:
parent
b57e130395
commit
9f68e27f5a
20 changed files with 443 additions and 97 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue