Learn R Programming

OpenRepGrid (version 0.1.15)

importGridstatInternal: Parser for Gridstat data files.

Description

Parse the file format that is used by the latest version of grid program gridstat (Bell, 1998).

Usage

importGridstatInternal(file, dir = NULL, min = NULL, max = NULL)

Value

a list with imported parameters

Arguments

file

filename including path if file is not in current working directory. File can also be a complete URL. The fileformat is .dat.

dir

alternative way to supply the directory where the file is located (default NULL).

min

optional argument (numeric, default NULL) for minimum rating value in grid.

max

optional argument (numeric, default NULL) for maximum rating value in grid.

References

Bell, R. C. (1998) GRIDSTAT: A program for analyzing the data of a repertory grid. Melbourne: Author.

Examples

Run this code
if (FALSE) {

# supposing that the data file gridstat.dat is in the current working directory
file <- "gridstat.dat"
imp <- importGridstatInternal(file)

# specifying a directory (example)
dir <- "/Users/markheckmann/data"
imp <- importGridstatInternal(file, dir)

# using a full path (example)
imp <- importGridstatInternal("/Users/markheckmann/data/gridstat.dat")

# setting rating scale range
imp <- importGridstatInternal(file, dir, min = 1, max = 6)
}

Run the code above in your browser using DataLab