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

Share:

Description

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

Usage

1
2
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

Examples

1
2
3
4
5
6
7
# 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))