Skip to content

Instantly share code, notes, and snippets.

@nievergeltlab
Last active June 29, 2021 21:23
Show Gist options
  • Save nievergeltlab/2055f46839ed565554a4be2c1d5eca96 to your computer and use it in GitHub Desktop.
Save nievergeltlab/2055f46839ed565554a4be2c1d5eca96 to your computer and use it in GitHub Desktop.
Generate a matrix that gives all combinations of levels across factors
expand.grid(study= c("pgc","hou"), imputation = c("unimputed","imputed"), subjs = c("pgbd","pgbd_va"), pheno = c("enter_M_v2","nonresponder","eventnonresponder"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment