lump_vars | R Documentation |
Lump variables in a table together by summing
lump_vars( x = read_dataset(), vars = c("Calanus finmarchicus IV", "Calanus finmarchicus V", "Calanus finmarchicus VI", "Calanus hyperboreus IV", "Calanus hyperboreus V", "Calanus hyperboreus VI", "Calanus glacialis IV", "Calanus glacialis V", "Calanus glacialis VI"), selector = dplyr::all_of, newname = "lumped", na.rm = TRUE, drop = TRUE )
x |
tibble |
vars |
character, one or more variables to lump |
selector |
function the function used to select the variables,
see |
newname |
character, the name of the new (lumped) columns |
na.rm |
logical, if TRUE lump after removing NA values |
drop |
logical, if TRUE drop the |
tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.