BenjaminLind

exampleRunningRScriptsFromJulia.jl

May 15th, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. degtable = "
  2. library(igraph)
  3. g <- erdos.renyi.game(100, .05, directed = TRUE)
  4. degdat <- data.frame(indeg = degree(g, mode=\"in\"), outdeg = degree(g, mode=\"out\"))
  5. write.table(degdat, \"degdat.tsv\", col.names = TRUE, row.names = FALSE, sep=\"\t\")
  6. degdat
  7. "
  8. outfile = open("degreetable.R", "w+")
  9. write(outfile, degtable)
  10. close(outfile)
  11. run(`Rscript degreetable.R`)
Advertisement
Add Comment
Please, Sign In to add comment