Learn R Programming

OpenRepGrid (version 0.1.9)

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)

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.

Value

a list with imported paraemeters

References

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

Examples

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

Run the code above in your browser using DataLab