locread {visualFields}R Documentation

Locmap management

Description

Functions to handle location maps, which are lists with x and y coordinates and other importan information about the visual field test locations. Check section Structure of location maps below for details

Usage

locread(file, name = "", desc = "", bs = numeric(), ...)

locwrite(locmap, file, ...)

Arguments

file

the name of the file which the data are to be read from

name

to give the location map

desc

brief description for the location map

bs

locations that should be excluded from statistical analysis because of their proximity to the blind spot

...

arguments to be passed to or from methods

locmap

location map from which to get coordinates to export as csv file

Details

Value

locread a list with information about a location map

locwrite No return value

Structure of location maps

Each element in the list locmaps is a location map that contains the following fields

Examples

# write and read location map
tf <- tempfile("locmap")
locwrite(getlocmap(), file = tf) # save current locmap in a temp file
print(locread(tf, name = "name", desc = "desc", bs = c(1, 2))) # read the temp file

[Package visualFields version 1.0.1 Index]