CIwR_ReadMe.txt

This is the setup I will be using during the tutorial, you may, 
of course, change OS, editor, paths to match your own preferences.

Windows XP SP1 on 2.5GHz P4 w/ 1G RAM.
R Version 2.3.0 
RWinEdt & WinEdt V5.4
Directory Structure:
 R’s working directory & source code: C:\Projects\CIwR\R
 Tutorial data loaded in: C:\Projects\CIwR\R\Data
 Plots will be stored in: C:\Projects\CIwR\R\Plots
I will demo RODBC against MS SQL2k
 I don’t expect you to have installed an RDBMS for tutorial
Other tools I like to use
 TextPad: www.TextPad.com

CIwR_DirData.zip expands to the above folder structure with the 
datasets loaded.

As a setup check, load R & paste:
##########
setwd("c:/Projects/CIwR/R")     ## Assuming you unzip in C:\Projects\
dir("Data")

KeyCustomers <- read.delim("Data/KeyCustomers.txt", row.names = "ActNum")
str(KeyCustomers)
####

Which should result in

      R : Copyright 2006, The R Foundation for Statistical Computing
      Version 2.3.0 (2006-04-24)
      ISBN 3-900051-07-0

      R is free software and comes with ABSOLUTELY NO WARRANTY.
      You are welcome to redistribute it under certain conditions.
      Type 'license()' or 'licence()' for distribution details.

        Natural language support but running in an English locale

      R is a collaborative project with many contributors.
      Type 'contributors()' for more information and
      'citation()' on how to cite R or R packages in publications.

      Type 'demo()' for some demos, 'help()' for on-line help, or
      'help.start()' for an HTML browser interface to help.
      Type 'q()' to quit R.

      > setwd("c:/Projects/CIwR/R")
      > dir("Data")
      [1] "CruseReservationEvents.txt" "KeyCustomers.txt"          
      [3] "MemberControlSet.txt"       "MemberTrainingSet.txt"     
      [5] "NewSubscribers.txt"         "ZipPopDist.txt"            
      > 
      > KeyCustomers <- read.delim("Data/KeyCustomers.txt", row.names = "ActNum")
      > str(KeyCustomers)
      `data.frame':   48714 obs. of  11 variables:
       $ PotSize  : Factor w/ 6 levels "LARGE","MEDIUM",..: 5 1 2 2 4 4 4 4 2 2 ...
       $ Country  : Factor w/ 1 level "USA": 1 1 1 1 1 1 1 1 1 1 ...
       $ IsCore   : Factor w/ 1 level "Core": 1 1 1 1 1 1 1 1 1 1 ...
       $ SIC_Div  : Factor w/ 4 levels "Construction",..: 1 1 1 1 1 1 1 1 1 1 ...
       $ SIC_Group: Factor w/ 11 levels "Building Construction General Contractors And Oper",..: 1 4 4 1 4 4 4 1 4 1 ...
       $ SIC_Name : Factor w/ 43 levels "ARCH/ORNAMENTAL METAL",..: 16 11 9 16 40 9 19 18 9 18 ...
       $ PchPctYr : num   0.274 98.082 67.671  0.000  0.000 ...
       $ NumInvYr : int  2 60 10 1 1 1 4 1 7 1 ...
       $ NumProdYr: int  2 81 22 1 3 1 6 1 5 2 ...
       $ DlrsYr   : num    401 31021  6345   643   121 ...
       $ ZIP      : int  33063 37643 33569 22151 17055 60073 48230 55330 34243 11370 ...

