Learn R Programming

OpenRepGrid (version 0.1.17)

importGridstat: Import Gridstat data files.

Description

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

Usage

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

Value

A single repgrid object in case one file and a list of repgrid objects in case multiple files are imported.

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.

See Also

importGridcor(), importGridstat(), importScivesco(), importGridsuite(), importTxt(), importExcel()

Examples

Run this code
if (FALSE) {

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

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

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

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

Run the code above in your browser using DataLab