Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created May 23, 2022 06:38
Show Gist options
  • Select an option

  • Save darioappsilon/a82de75188ce77b54821bf786429d51b to your computer and use it in GitHub Desktop.

Select an option

Save darioappsilon/a82de75188ce77b54821bf786429d51b to your computer and use it in GitHub Desktop.

Revisions

  1. darioappsilon created this gist May 23, 2022.
    12 changes: 12 additions & 0 deletions data_lookups.R
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    library(tibble)

    random_string_column <- function(n) {
    stringi::stri_rand_strings(n = n, length = 8)
    }

    random_data_frame <- function(n) tibble(
    col1 = random_string_column(n),
    col2 = random_string_column(n)
    )

    data <- random_data_frame(10^7)