2023-03-07 15:38:28 +01:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/utils.r
|
|
|
|
\name{sanitize_split}
|
|
|
|
\alias{sanitize_split}
|
|
|
|
\title{Sanitize list of data frames}
|
|
|
|
\usage{
|
|
|
|
sanitize_split(
|
|
|
|
l,
|
2024-02-06 14:02:55 +01:00
|
|
|
generic.names = c("redcap_event_name", "redcap_repeat_instrument",
|
2024-11-28 14:32:03 +01:00
|
|
|
"redcap_repeat_instance"),
|
|
|
|
drop.complete = TRUE,
|
|
|
|
drop.empty = TRUE
|
2023-03-07 15:38:28 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{l}{A list of data frames.}
|
|
|
|
|
|
|
|
\item{generic.names}{A vector of generic names to be excluded.}
|
2024-11-28 14:32:03 +01:00
|
|
|
|
|
|
|
\item{drop.complete}{logical to remove genric REDCap variables indicating
|
|
|
|
instrument completion. Default is TRUE.}
|
|
|
|
|
|
|
|
\item{drop.empty}{logical to remove variables with only NAs Default is TRUE.}
|
2023-03-07 15:38:28 +01:00
|
|
|
}
|
|
|
|
\value{
|
|
|
|
A list of data frames with generic names excluded.
|
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Removing empty rows
|
|
|
|
}
|