Learn R Programming

OpenRepGrid (version 0.1.9)

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)

Arguments

file
Filename including path if file is not in current working directory. File can also be a complete URL. The fileformat is .dat. If no file is supplied a selection pop up menu is opened to select the files.
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.

Value

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

References

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

See Also

importGridcor, importGridstat, importScivesco, importGridsuite, importTxt, importExcel

Examples

Run this code
## Not run: 
# 
# # using the pop-up selection menu
# rg <- importGridstat()
# 
# # 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")
# 
# # load gridstat data from URL
# rg <- importGridstat("http://www.openrepgrid.uni-bremen.de/data/gridstat.dat")
# 
# # setting rating scale range
# rg <- importGridstat(file, dir, min=1, max=6)
# ## End(Not run)

Run the code above in your browser using DataLab