saveBruker2Txt: Read Raw Binary Bruker NMR Spectra and save them to ASCII...

Description Usage Arguments Value Examples

View source: R/saveBruker2Txt.R

Description

Save the multiple raw binary Bruker NMR spectra (1D) from a specified folder into ASCII file as a matrix with columns:

[ppm, spectrum 1, spectrum 2, ...].

Interpolation may be performed if spectra have different ppm scales.

Usage

1
saveBruker2Txt(BrukerDataDir)

Arguments

BrukerDataDir

The directory of the folder containing 1D Bruker spectral data files. Recursively finds all the "1r" files in datapath and read in.

saveFileName

The saved file name with extension.

Value

It returns a matrix with columns:

[ppm, spectrum 1, spectrum 2, ...].

Examples

1
2
3
4
library(batman)
## Read in all Burker NMR spectra files, replace "/your/data/path/here" with the
## directory of the data files you want to read.
## brukerdata<-readBruker("/your/data/path/here")

batman documentation built on June 7, 2017, 3 p.m.