Skip to content

Instantly share code, notes, and snippets.

@elowy01
Last active August 5, 2022 12:29
Show Gist options
  • Save elowy01/a0cb342b25fd61d125d50f3b583d3b92 to your computer and use it in GitHub Desktop.
Save elowy01/a0cb342b25fd61d125d50f3b583d3b92 to your computer and use it in GitHub Desktop.
df <- data.frame(
x=rnorm(25),
y=rnorm(25),
g=rep(factor(LETTERS[1:5]), 5)
)
X <- split(df, df$g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment