Learn R Programming

IgorR (version 0.9.0)

read.ibw: 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
)

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

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.

Author

jefferis

See Also

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

Examples

Run this code
# 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))

Run the code above in your browser using DataLab