Data
1. The data files from the 2014 book listed below for download can also be accessed directly from the web from within R with the following Read statement.
> mydata <- Read("http://lessRstats.com/data/name")
Replace name with the specific name of the file to access. Most of the text files are in csv format, for Comma Separated Values. Other text files are in the fwd format, for Fixed WiDth, in which the data values for a variable all occupy the same columns.
2. The SPSS versions of the data files are provided for SPSS users who can compare R/lessR with SPSS. The purpose is to show that data analysis with the lessR functions within the standard R environment is no more difficult that using SPSS in its GUI environment. And, by comparison, the R environment is much faster and more responsive, and, of course, free.
3. Files that are contained within lessR have already been downloaded when the lessR package was installed. To access any of these files from within R, use the Read function with the format option set to "lessR". For example, read a data table from the specified file into the data frame called mydata with the following R statement.
> mydata <- Read("name", format="lessR")
Replace name with the specific name of the file to download. The data files that are part of lessR are BodyMeas, Cars93, Employee, Learn, Mach4 and Reading. The Employee and Mach4 data tables already have the variable labels included.
Chapter 1: R for Data Analysis
Chapter 2: Read/Write Data
Chapter 3: Edit Data
Sec |
Text |
SPSS |
Description |
3.7.1 |
Emp1a.csv |
|
First file to horizontal merge |
3.7.1 |
Emp1b.csv |
|
Second file to horizontal merge |
3.7.2 |
Emp2a.csv |
|
First file to vertical merge |
3.7.2 |
Emp2b.csv |
|
Second file to vertical merge |
3.8 |
Cars93.csv |
|
Data from 1993 cars for Exercise 3-2 to 5 |
Chapter 4: Categorical Variables
Chapter 5: Continuous Variables
Chapter 6: Means, Compare Two Samples
Chapter 7: Compare Multiple Samples
Chapter 8: Correlation
Chapter 9: Regression I
Chapter 10: Regression II
Chapter 11: Factor/Item Analysis
Sec |
Text |
SPSS |
Description |
11.3.2 |
Mach4.fwd |
Mach4.sav |
Responses to the 20-item Mach IV scale |
11.5.2 |
MIMMperfect.cor |
|
Population correlation matrix for the specified measurement model |
11.7 |
Mach4Plus.fwd |
|
Fixed width text data file for Exercises 11-1 and 2. All items already reversed scored. |