fix_dups | R Documentation |
fix_dups
creates a data.frame where duplicated columns
with a specific suffix are row-wise gone through, and where there
is NA in the original column, the suffixed column's data is
placed there instead.
fix_dups(data, suffix, remove = T)
data |
A data.frame or tibble. |
suffix |
A single string with column suffix to look for. |
remove |
logical. If column with suffix are to be removed. |
a data frame with added/replaced age and timepoint variables.
## Not run:
fix_dups(data, suffix="YY")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.