Description Usage Arguments Value Examples
View source: R/etl_functions.R
Generates SQL to create a new table from R dataframe- useful in conjuction with copying from s3 to Redshift
1 | generate_create_table_sql(table_name, df)
|
table_name |
name of table to create on Redshift |
df |
R dataframe object |
string with create table syntax, can be plugged into dbGetQuery
1 2 3 | redshift_conn <- create_redshift_con()
sql_create_statement <- generate_create_table_sql("data.activations",activation_data)
dbGetQuery(redshift_conn, sql_create_statement)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.