Skip to content

Instantly share code, notes, and snippets.

@dpastoor
Created March 12, 2016 15:09
Show Gist options
  • Save dpastoor/e5c8aa5aa17871957655 to your computer and use it in GitHub Desktop.
Save dpastoor/e5c8aa5aa17871957655 to your computer and use it in GitHub Desktop.
vector to lower triangle matrix
b = matrix(0, 2, 2)
b[lower.tri(b, diag=T)] = as.numeric(c("1.23E-01",
"0.00E+00",
"1.54E-01"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment