Learn R Programming

dwtools

Current version: 0.8.3.9

Data Warehouse, Business Intelligence, data integration helpers. Unifies database connectors to DBI, RJDBC, RODBC, csv. Easy managing multiple simultaneous db connections. MDX like queries on cube class object. Data modelling helpers, denormalization of star schema and snowflake schema, basic normalization. And more.

Installation

library(devtools)
install_github("jangorecki/dwtools")

Features

For basic examples of each function see introduction vignette.

  • db: simple database interface accross multiple various connections.
  • CUBE: cube class object and MDX like queries on it.
  • timing: measure function timing and process metadata, for extended logging see logR package.
  • pkgsVersion: batch package version compare between libraries.
  • joinbyv: batch join tables, denormalization of star schema or snowflake schema modeled data.
  • build_hierarchy: basic hierarchy detection.
  • eav: Entity-Attribute-Value data manipulation.
  • shinyBI: shinyApp for making aggregates on star schema data.
  • idxv: DT binary search on multiple keys, also known as Nth setkey.
  • more in introduction vignette.

License

GPL-3.
Donations are welcome and will be partially forwarded to dependencies of dwtools: 19JRajumtMNU9h9Wvdpsnq13SRdZjfbLeN

Contact

J.Gorecki@wit.edu.pl

Copy Link

Version

Version

0.8.3.9

License

GPL-3

Maintainer

Last Published

February 15th, 2017

Functions in dwtools (0.8.3.9)

CJI

Indexed cross join / filter for data.table
data.equal.data.table

Data equal in two data.tables
CUBE

Cube class
auto.table.name

Auto table name generate
as.POSIXct

as.POSIXct
add.db.conns

Append connection to dictionary
anonymize

Anonymize
build_hierarchy

Build hierarchy
add.timing

Add timing to cache
db_dict

db_dict
has.spaces

has.spaces
eav

Entity-Attribute-Value data evaluate
is.int.POSIXct

is.int.POSIXct
dbCopy

Copy tables between databases
dw.populate

Populate DW data
get.timing

Get timing logs
idxv

Precalculate data.table indices
db

Simple database interface
empty.timing

Empty timing table
dwtools

Data Warehouse tools
list.sub

list.sub
is.sql.get

is.sql.get
nrowDTlengthVec

nrowDTlengthVec
nrowDT

nrowDT
is.table.name

is.table.name
is.sql.send

is.sql.send
n_unique

Fast N unique
is.sql

is.sql
joinbyv

Batch join multiple tables
is.unique

Fast check is vector unique
POSIXct

POSIXct
purge.timing

Truncate in-memory timing logs cache
round.POSIXct

round.POSIXct
vwap

OHLC and VWAP
timing

Measure timing and expression metadata
sql.dt

SQL query to data.table query mapping
pkgsVersion

pkgsVersion
time_dict

time_dict