Skip to content

Instantly share code, notes, and snippets.

@dmpetrov
Created March 6, 2017 05:14
Show Gist options
  • Save dmpetrov/b3cceef5fefc1cd41e8f60d9e560113d to your computer and use it in GitHub Desktop.
Save dmpetrov/b3cceef5fefc1cd41e8f60d9e560113d to your computer and use it in GitHub Desktop.
How Much Memory Does A Data Scientist Need (step2)
data.slice.reg <- data.slice.cum_freq %>%
filter(log10(sizeGB) >= -2) %>%
filter(log10(sizeGB) <= 4)
ggplot(data.slice.reg, aes(x=log10(sizeGB), y=cum_freq, color=factor(year))) +
geom_line(aes(group = factor(year)))
attach(data.slice.reg)
model <- lm(log10(sizeGB) ~ cum_freq + year, na.action=na.exclude)
summary(model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment