createTimeDistanceFunction: Creates time_distance function and load sample data

Description Usage Arguments Examples

Description

Creates time_distance function in given portfolio and optionally loads sample data.

Usage

1
2
createTimeDistanceFunction(functionSchema = "public", con, loadData = FALSE,
  dataSchema = "public")

Arguments

functionSchema

Schema where time_distance function will be created. Default is public.

con

Connection to PostgreSQL database as produced by dbConnect(...)

loadData

When true than tables small_portfolio and big_portfolio with sample data will be created.

dataSchema

Schema where sample tables should be created. Default is public.

Examples

1
2
3
4
5
6
## Not run: 
drv <- dbDriver("PostgreSQL")
pgCon <- dbConnect(drv, user = 'usr', dbname="db", password = 'secret', host = 'localhost', port = 5432)
createTimeDistanceFunction(con = pgCon, loadData = TRUE)

## End(Not run)

tomasgreif/vintager documentation built on May 31, 2019, 5:16 p.m.