Skip to content

About

Java Library for Reading SPSS Data Files

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Maven Central

SPSS Reader

Java library to read SPSS files.

Adding to your project

<dependency>
   <groupId>com.bedatadriven</groupId>
   <artifactId>spss</artifactId>
   <version>1.2</version>
</dependency>

Reading an SPSS File

SpssDataFileReader reader = new SpssDataFileReader("mydata.sav");

// Print variables present in the file
for(SpssVariable variable : reader.getVariables()) {
    System.out.println(variable.getLabel());
}

// Read the cases
while(reader.readNextCase()) {
    double var0 = reader.getDoubleValue(0);
    String var1 = reader.getStringValue(1);
}

About

Java Library for Reading SPSS Data Files

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages