Learn R Programming

IgorR (version 0.4)

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

Description

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

Usage

ReadIgorBinary(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
Whether to print status information while reading the file
ReturnTimeSeries
Return as an R time series (package ts)
MakeWave
Assign wave to a list in the global user environment
HeaderOnly
Only return the header of the Igor Wave

Value

  • returns a vector containing the wave data OR returns the name of a new R vector containing the data which has been made in the user environment

Examples

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

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

Run the code above in your browser using DataLab