Skip to content
Snippets Groups Projects
Commit eb97a497 authored by William Stonewall Monroe's avatar William Stonewall Monroe
Browse files

The lines describing R commands on the yahoo database were removed. The users...

The lines describing R commands on the yahoo database were removed. The users won't have easy access to this data by default.
parent 92383d7b
No related branches found
No related tags found
No related merge requests found
......@@ -19,20 +19,3 @@ system.time(ddply(iris, .(Species), function(x) {
}, .parallel = TRUE))
# user system elapsed
# 0.018 0.015 2.031
headers <- c("timestamp", "phrase_id", "account_id", "price", "auto")
df <- read.table("./ydata-ysm-advertiser-bids-v1_0.txt")
colnames(df) <- headers
system.time(ddply(df, .(phrase_id, account_id), function(x) {
data.frame(mean=mean(x$price, na.rm=T), median=median(x$price, na.rm=T))
nrow(x)
}))
# user system elapsed
# 42.989 0.734 43.726
system.time(ddply(df, .(phrase_id, account_id), function(x) {
data.frame(mean=mean(x$price, na.rm=T), median=median(x$price, na.rm=T))
nrow(x)
}, .parallel = TRUE))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment