<jonathan.rosenblatt@weizmann.ac.il>
date: 23.10.2014
[Written with R Markdown]
Remarks:
cannot allocate vector of size n Mb
cannot allocate vector of size n Mb
But might require different resources.
Linear algebra example:
A %*% B %*% x
A %*% (B %*% x)
Optimization example:
Fix the right problem!
parallel::parApply()
family.foreach::foreach()
parallelized loops.Keep listening.
packrat
over Dropbox.magrittr
, your life is about to change.hourly_delay <- filter(
summarise(
group_by(
filter(
flights,
!is.na(dep_delay)
),
date, hour
),
delay = mean(dep_delay),
n = n()
),
n > 10
)
hourly_delay <- flights %>%
filter(!is.na(dep_delay)) %>%
group_by(date, hour) %>%
summarise(
delay = mean(dep_delay),
n = n() ) %>%
filter(n > 10)