Description Usage Arguments Value Examples
View source: R/clean_observations.R
Replace valid observations by NA
s when a given subject has more then
max_na
missing values.
1 | clean_observations(data, id, var, max_na)
|
data |
A data frame, or data frame extension (e.g. a tibble). |
id |
The bare (unquoted) name of the column that identifies each subject. |
var |
The bare (unquoted) name of the column to be cleaned. |
max_na |
An integer indicating the maximum number of |
The original data
with the var
observations matching
the max_na
criterion replaced by NA
.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.