Learn R Programming

IgorR (version 0.9.0)

read.pxp: Reads an Igor Pro Packed Experiment (.pxp) file

Description

Note that PXP files are only partially documented so some contents cannot be parsed (e.g. image data). This function currently reads data records (Igor waves and variables), history, procedures, recreation macros and plain text notebooks. Formatted notebooks cannot be read.

Usage

read.pxp(
  pxpfile,
  regex,
  ReturnTimeSeries = FALSE,
  Verbose = FALSE,
  StructureOnly = FALSE,
  ExtractText = FALSE,
  IgorPlatform = NULL,
  ...
)

Value

A list containing all the individual waves or variables in the PXP file.

Arguments

pxpfile

character vector naming a PXP file or an R connection.

regex

if TRUE, only read records (e.g. waves) in the PXP file whose names match a regex.

ReturnTimeSeries

if TRUE, Igor waves are returned as a link{ts} object with sensible x scaling (FALSE by default).

Verbose

whether to print information to console during loading (numeric values are also allowed 0=none, 1=basic, 2=all).

StructureOnly

(TODO) if TRUE, only the structure of the PXP file for inspection.

ExtractText

whether to extract procedures, recreation macros, history and plain text notebooks (FALSE by default).

IgorPlatform

OS on which Igor file was saved (windows or macintosh).

...

optional parameters passed to read.ibw.

Author

jefferis

Details

IgorPlatform will determine in which encoding text is read (WINDOWS-1252 for windows and macintosh for macintosh). Unique abbreviations are acceptable. Defaults to "windows" on Windows, "macintosh" otherwise. Note that Igor Pro 5.5 added a PlatformRecord to the PXP file format which is used to determine the file's platform of origin when available. Since this is information straight from the horse's mouth it will override the IgorPlatform argument.

See Also

Other igor-io: WaveToTimeSeries(), read.ibw()

Examples

Run this code
r=read.pxp(system.file("igor","testexpt.pxp",package="IgorR"))

Run the code above in your browser using DataLab