Some longer description.
Common tasks when using dplyr are
split-map-combine: mapGroups
: shorthand for
split(group_indices(.)) %>% map_dfr(...)
mutate acting only on the rows satisfying the condition:
mutate_cond
left_join with before dropping columns that would be duplicated:
left_joinReplace
Dealing with unequal factor levels:
In case of unequal factor levels in row-binding tbls or joins, factors are converted to character. This package provides function to relevel factors in tbls before those operations.
expand a factor variables in all dataset to encompass levels of all sets:
expandAllInconsistentFactorLevels
join with homogenizing factors before: left_joinFactors
Also have a look at the package vignettes.
Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.