Skip to content

Instantly share code, notes, and snippets.

@cbare
Created November 19, 2012 16:09
Show Gist options
  • Select an option

  • Save cbare/4111510 to your computer and use it in GitHub Desktop.

Select an option

Save cbare/4111510 to your computer and use it in GitHub Desktop.
Synapse Test
library(MASS)
library(synapseClient)
## create a matrix with defined correlation structure
cm <- matrix(c(1.0,0.5,0.25,0.125, 0.5,1,0.5,0.25, 0.25,0.5,1,0.5, 0.125,0.25,0.5,1), nrow=4, ncol=4)
m <- mvrnorm( 100, rep(0.0, 4), cm)
cor(m)
d <- Data(parentId=1493172, name='matrix100x4')
d <- storeEntity(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment