Skip to content

Instantly share code, notes, and snippets.

@jrherr
Forked from johnmyleswhite/zany.R
Created December 18, 2013 02:18
Show Gist options
  • Save jrherr/8016307 to your computer and use it in GitHub Desktop.
Save jrherr/8016307 to your computer and use it in GitHub Desktop.
M <- matrix(c(1, 0, 0, 1), byrow = 1, nrow = 2)
df <- data.frame(A = 1)
df$B <- list(M)
df
# A B
# 1 1, 0, 0, 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment