-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathard_stack.Rd
More file actions
80 lines (69 loc) · 2.42 KB
/
Copy pathard_stack.Rd
File metadata and controls
80 lines (69 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ard_stack.R
\name{ard_stack}
\alias{ard_stack}
\title{Stack ARDs}
\usage{
ard_stack(
data,
...,
.by = NULL,
.overall = FALSE,
.missing = FALSE,
.attributes = FALSE,
.total_n = FALSE,
.shuffle = FALSE,
.by_stats = TRUE
)
}
\arguments{
\item{data}{(\code{data.frame})\cr
a data frame}
\item{...}{(\code{\link[rlang:dyn-dots]{dynamic-dots}})\cr
Series of ARD function calls to be run and stacked}
\item{.by}{(\code{\link[dplyr:dplyr_tidy_select]{tidy-select}})\cr
columns to tabulate by in the series of ARD function calls.
Any rows with \code{NA} or \code{NaN} values are removed from all calculations.}
\item{.overall}{(\code{logical})\cr logical indicating whether overall statistics
should be calculated (i.e. re-run all \verb{ard_*()} calls with \code{by=NULL}).
Default is \code{FALSE}.}
\item{.missing}{(\code{logical})\cr
logical indicating whether to include the results of \code{ard_missing()} for all
variables represented in the ARD. Default is \code{FALSE}.}
\item{.attributes}{(\code{logical})\cr
logical indicating whether to include the results of \code{ard_attributes()} for all
variables represented in the ARD. Default is \code{FALSE}.}
\item{.total_n}{(\code{logical})\cr
logical indicating whether to include of \code{ard_total_n()} in the returned ARD.}
\item{.shuffle}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} support for \code{.shuffle = TRUE}
has been removed.}
\item{.by_stats}{(\code{logical})\cr
logical indicating whether to include overall stats of the \code{by} variables in the returned ARD.}
}
\value{
an ARD data frame of class 'card'
}
\description{
Stack multiple ARD calls sharing common input \code{data} and \code{by} variables.
Optionally incorporate additional information on represented variables, e.g.
overall calculations, rates of missingness, attributes, or transform results
with \code{shuffle_ard()}.
If the \code{ard_stack(by)} argument is specified, a univariate tabulation of the
by variable will also be returned.
}
\examples{
ard_stack(
data = ADSL,
ard_tabulate(variables = "AGEGR1"),
ard_summary(variables = "AGE"),
.by = "ARM",
.overall = TRUE,
.attributes = TRUE
)
ard_stack(
data = ADSL,
ard_tabulate(variables = "AGEGR1"),
ard_summary(variables = "AGE"),
.by = "ARM"
)
}