fetch_new_NCtraining_data: Generate data frame containing new customer data for entire...

Description Usage Arguments Details Value Examples

View source: R/new_nccluster_data.R

Description

fetch_new_NCtraining_data returns a data frame consisting of all new customers from the supplied year.

Usage

1

Arguments

year

is the year of interest. Must be in the format YYYY. The function will convert to proper data type.

conn

is the name of a valid data base connection.

Details

WARNING: THIS FUNCTION CAN TAKE >90 MINUTES TO COMPLETE QUERY.

This function will produce a data frame containing all unique customers of a given year, and >85 variables related to those customers. The query as written is restricted to new customers and does not generate data beyond information regarding their first purchase.

Value

This function returns a single data frame.

Examples

1
2
3
4
5
6
## Not run: 
  con = dbConnect(odbc::odbc(), 'EDW_BA_PROD', uid = 'danwal1', pwd = 'XXXXXXXX')

## End(Not run)

 df = fetch_new_NCtraining_data(2018, conn = con)

dwalke44/customerClusters documentation built on May 28, 2019, 12:02 p.m.