locmap: Locmap management

locreadR 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

  • locread reads a csv file with location map data

  • locwrite writes a csv file with location map data

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

  • name descriptive name

  • desc brief description

  • coord coordinates of the visual field locations

  • bs if not empty, the locations that ought to be removed for statistical analysis due to their proximity to the blind spot

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

visualFields documentation built on March 18, 2022, 7:14 p.m.