Description Usage Arguments Value Examples
View source: R/repeat_baseline_values.R
Returns a vector with the length equal to the number of rows in the
data
with the baseline value of the var
repeated for every
time
value of each id
.
1 | repeat_baseline_values(data, var, id, time, baseline_level, repeat_NA = TRUE)
|
data |
A data frame. |
var |
The bare (unquoted) name of the column with the values to be repeated. |
id |
The bare (unquoted) name of the column that identifies each subject. |
time |
The bare (unquoted) name of the column with the time values. |
baseline_level |
The value of |
repeat_NA |
A logical vector indicating whether or not |
A vector of the same lenght and class of var
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.