This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# data.table version of https://stackoverflow.com/questions/1395270/determining-memory-usage-of-objects | |
data.table(Size_MB=sapply(ls(),function(x){round(object.size(get(x))/(10^6),2)}), Object=ls())[order(-Size_MB)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# original advert at https://twitter.com/emmoenergyltd/status/897488236527931392 | |
library(data.table) | |
library(ggplot2) | |
data <- data.table(supplier=c(1:10), price=c(18.83, 20.36, 20.83, 18.26, 21.46, 17.66, 22.41, 21.36, 20.23, 9.9)) | |
ggplot(data, aes(supplier, price)) + | |
geom_col(alpha = 0.5, colour="black") + | |
ylab("Pence per kWh") + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am daniel-wells on github. | |
* I am danielwells (https://keybase.io/danielwells) on keybase. | |
* I have a public key whose fingerprint is EF43 5A53 1FA7 B8A6 2961 7469 E3CE 2D43 84E6 1B5F | |
To claim this, I am signing this object: |