read.ibw: Read binary files in the Igor Binary Wave format (IBW)

View source: R/ReadIgorBinary.R

read.ibwR Documentation

Read binary files in the Igor Binary Wave format (IBW)

Description

Read binary files in the Igor Binary Wave format (IBW)

Usage

read.ibw(
  wavefile,
  Verbose = FALSE,
  ReturnTimeSeries = FALSE,
  MakeWave = FALSE,
  HeaderOnly = FALSE
)

Arguments

wavefile

either a character vector containing the path to a file or an R connection.

Verbose

if TRUE, print status information while reading the file.

ReturnTimeSeries

if TRUE, return as an R time series (package ts).

MakeWave

if TRUE, assign wave to a list in the global user environment.

HeaderOnly

if TRUE, only return the header of the Igor Wave.

Value

A vector containing the wave data or, if MakeWave == TRUE, returns the name of a new R vector containing the data which has been made in the user environment

Author(s)

jefferis

See Also

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

Examples

# return a list containing the wave
wavedata=read.ibw(system.file("igor","version5.ibw",package="IgorR")) 
sum(wavedata)

# make a list containing the wave's data in the users's environment
wavename=read.ibw(system.file("igor","version5.ibw",package="IgorR"),MakeWave=TRUE) 
sum(get(wavename))

IgorR documentation built on Sept. 11, 2024, 7:47 p.m.