Skip to content

Instantly share code, notes, and snippets.

View sharlagelfand's full-sized avatar
💅
#rstats

Sharla Gelfand sharlagelfand

💅
#rstats
View GitHub Profile
---
title: "Plotly and floating TOC"
output:
html_document:
toc: true
toc_float: true
---
# h1
@sharlagelfand
sharlagelfand / r_to_redshift
Created February 16, 2018 18:54
Inserting data into redshift from R
library(glue)
library(RPostgreSQL)
library(DBI)
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv,
host=Sys.getenv("JDBCURL"),
port = Sys.getenv("PORT"),
dbname = Sys.getenv("DBNAME"),
user = Sys.getenv("USER"),