Split-Apply-Combine strategy is an attractive conceptual model in terms of removing for
loops. from the following R workflow, which is the Split-Apply-Combine strategy?
split
→ lapply
→ do.call
ddplyr
: .data
, .variable
, .fun
tidyverse
: group_by
, do
split
→ map_dfr
group_by
→ nest()
→ mutate(map())
Instruction
iris_tbl
dataframeSpecies
, and then nest()
Calculate Sepal.Length
mean through mutate()
, map()
pattern