select_distinct | R Documentation |
Select all columns that has only one level for a given grouping scope. Useful when dealing with mixed datasets containing both long data and repeated short data.
select_distinct(df, .by)
df |
a dataframe |
.by |
optional grouping columns |
df
with less columns
tm = edc_example_ae()
tm$ae %>% names
tm$ae %>% select_distinct() %>% names
tm$ae %>% select_distinct(.by=subjid) %>% names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.