Skip to content

Instantly share code, notes, and snippets.

@atusy
Created January 16, 2019 00:41
Show Gist options
  • Save atusy/0f0812c6d0ac30e521daa3ec740bb485 to your computer and use it in GitHub Desktop.
Save atusy/0f0812c6d0ac30e521daa3ec740bb485 to your computer and use it in GitHub Desktop.
deparse.level parameter of combining functions
library(bench)
library(ggplot2)
a <- 1:3
rbind(a, a)
#>   [,1] [,2] [,3]
#> a    1    2    3
#> a    1    2    3
rbind(a, a, deparse.level = 0)
#>      [,1] [,2] [,3]
#> [1,]    1    2    3
#> [2,]    1    2    3
autoplot(mark(
  "deparse.level = 1" = rbind(a, a),
  "deparse.level = 0" = rbind(a, a, deparse.level = 0),
  check = FALSE
))

Created on 2019-01-16 by the reprex package (v0.2.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment