-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtemplate_exposure.Rd
More file actions
78 lines (63 loc) · 3.18 KB
/
template_exposure.Rd
File metadata and controls
78 lines (63 loc) · 3.18 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tm_t_exposure.R
\name{template_exposure}
\alias{template_exposure}
\title{Template: Exposure Table for Risk management plan}
\usage{
template_exposure(
parentname,
dataname,
id_var,
paramcd,
paramcd_label = NULL,
row_by_var,
col_by_var = NULL,
add_total = FALSE,
total_label = "Total",
add_total_row = TRUE,
total_row_label = "Total number of patients and patient time*",
drop_levels = TRUE,
na_level = tern::default_na_str(),
aval_var,
avalu_var,
basic_table_args = teal.widgets::basic_table_args()
)
}
\arguments{
\item{parentname}{(\code{character})\cr parent analysis data used in teal module, usually this refers to \code{ADSL}.}
\item{dataname}{(\code{character})\cr analysis data used in teal module.}
\item{id_var}{(\code{character})\cr the variable name for subject id.}
\item{paramcd}{(\code{character})\cr name of the parameter code variable.}
\item{paramcd_label}{(\code{character})\cr the column from the \code{dataname} dataset where the
value will be used to label the argument \code{paramcd}.}
\item{row_by_var}{(\code{character})\cr variable name used to split the values by rows.}
\item{col_by_var}{(\code{character})\cr variable name used to split the values by columns.}
\item{add_total}{(\code{logical})\cr whether to include column with total number of patients.}
\item{total_label}{(\code{string})\cr string to display as total column/row label if column/row is
enabled (see \code{add_total}). Defaults to \code{"All Patients"}. To set a new default \code{total_label} to
apply in all modules, run \code{set_default_total_label("new_default")}.}
\item{add_total_row}{(\code{flag})\cr whether a "total" level should be added after the others which includes all the
levels that constitute the split. A custom label can be set for this level via the \code{total_row_label} argument.}
\item{total_row_label}{(\code{character})\cr string to display as total row label if row is
enabled (see \code{add_total_row}).}
\item{drop_levels}{(\code{flag})\cr whether empty rows should be removed from the table.}
\item{na_level}{(\code{string})\cr used to replace all \code{NA} or empty values
in character or factor variables in the data. Defaults to \code{"<Missing>"}. To set a
default \code{na_level} to apply in all modules, run \code{set_default_na_str("new_default")}.}
\item{aval_var}{(\code{character})\cr name of the analysis value variable.}
\item{avalu_var}{(\code{character})\cr name of the analysis value unit variable.}
\item{basic_table_args}{(\code{basic_table_args}) optional\cr object created by \code{\link[teal.widgets:basic_table_args]{teal.widgets::basic_table_args()}}
with settings for the module table. The argument is merged with option \code{teal.basic_table_args} and with default
module arguments (hard coded in the module body).
For more details, see the vignette: \code{vignette("custom-basic-table-arguments", package = "teal.widgets")}.}
}
\value{
a \code{list} of expressions to generate a table or plot object.
}
\description{
Creates a valid expression to generate exposure table for risk management plan.
}
\seealso{
\code{\link[=tm_t_exposure]{tm_t_exposure()}}
}
\keyword{internal}