Skip to content

Instantly share code, notes, and snippets.

@tchakravarty
Created October 22, 2016 20:19
Show Gist options
  • Save tchakravarty/89ec20c5b985d0ad5e89d12ffbe859d6 to your computer and use it in GitHub Desktop.
Save tchakravarty/89ec20c5b985d0ad5e89d12ffbe859d6 to your computer and use it in GitHub Desktop.
Create sample datasets with lots of similar variables
library(tidyverse)
library(modelr)
library(lazyeval)
library(purrr)
# create the dataset
df_foo = wakefield::r_data_frame(
n = 100,
wakefield::r_series(wakefield::r_sample, j = 5, name = "cat"),
Y = wakefield::normal()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment