FormatSensors: Format Sensor Names

Description Usage Arguments Value Examples

Description

Format a character vector whose elements denote sensor names.

Usage

1
FormatSensors(sensors = character(), n = 16)

Arguments

sensors

A character vector, names for sensors that were attached to the participant and connected to sockets in the Carstens Sensin box. The position of a name in this vector is interpreted as the number of the socket to which the sensor was connected. Default is character().

n

An atomic numeric, the number of sensors/sockets for which the Carstens Sweepsaver software recorded data. (This number is recorded in the NumberOfChannels field in the header of a .pos file.) Default is 16.

Value

A character vector, derived by padding sensors with empty strings ("") to length n, and then replacing the empty strings with "CH##", where ## denotes the position of the string.

Examples

1
2
3
FormatSensors(n = 8)
FormatSensors(sensors = c("HL", "HR", "TB", "TD", "TT"), n = 16)
FormatSensors(sensors = c("", "", "TB", "TD", "TT"), n = 16)

patrickreidy/ag501 documentation built on May 30, 2019, 10:01 p.m.