Skip to content

Instantly share code, notes, and snippets.

@infotroph
Created March 24, 2014 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infotroph/9751447 to your computer and use it in GitHub Desktop.
Save infotroph/9751447 to your computer and use it in GitHub Desktop.
No speed win from ddply
> system.time({a=by(raw, raw$Img, strip.tracing.dups); b=do.call(rbind,a)})
user system elapsed
35.127 5.569 40.398
> system.time({a=by(raw, raw$Img, strip.tracing.dups); b=do.call(rbind,a)})
user system elapsed
35.559 5.482 40.728
> system.time({a=by(raw, raw$Img, strip.tracing.dups); b=do.call(rbind,a)})
user system elapsed
35.666 4.975 40.366
> system.time({a=ddply(raw, .(Img), strip.tracing.dups)})
user system elapsed
36.454 6.814 42.877
> system.time({a=ddply(raw, .(Img), strip.tracing.dups)})
user system elapsed
37.629 7.832 45.064
> system.time({a=ddply(raw, .(Img), strip.tracing.dups)})
user system elapsed
37.283 7.224 44.058
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment