Skip to content

Instantly share code, notes, and snippets.

## Install packages if you don't already have them
install.packages(c("stringr", "igraph"), dependencies = TRUE)
## Load the packages
library(stringr)
library(igraph)
## Read in the data
queries <- read.csv("~/Downloads/queries.csv")
tables <- read.csv("~/Downloads/tables.csv")
@sauljackman
sauljackman / database_network_visualization.R
Created October 29, 2015 19:26
Use this code to turn a list of SQL queries into a visual of how your database is used.
## Install packages if you don't already have them
install.packages(c("stringr", "tm", "igraph"), dependencies = TRUE)
## Load the packages
library(stringr)
library(tm)
library(igraph)
## Read in the data