readBruker: A function for reading Bruker NMR spectra.

View source: R/mrbin.R

readBrukerR Documentation

A function for reading Bruker NMR spectra.

Description

This function reads Bruker NMR data. 1D and 2D data are supported.

Usage

readBruker(
  folder = NULL,
  dimension = NULL,
  onlyTitles = FALSE,
  useAsNames = "Spectrum titles",
  checkFiles = FALSE
)

Arguments

folder

Defines the exact NMR data folder. If NULL, mrbin parameter set is used

dimension

Defines the data dimension, "1D" or "2D". Only used if not NULL

onlyTitles

Read only spectrum titles, but no data. Defaults to FALSE

useAsNames

How should sample names be generated

checkFiles

Only check if the folder exists or contains NMR data. Defaults to FALSE

Value

An (invisible) list containing spectral data and the spectrum name

Examples

exampleData<-readBruker(folder=system.file("extdata/1/10/pdata/10",package="mrbin"),
                        dimension="1D")

mrbin documentation built on June 22, 2024, 9:39 a.m.