Skip to contents

Set/Return the full spectra matrix

Usage

nmr_data(nmr_dataset, ...)

# S3 method for class 'nmr_dataset_1D'
nmr_data(nmr_dataset, what = "data_1r", ...)

nmr_data(nmr_dataset, ...) <- value

# S3 method for class 'nmr_dataset_1D'
nmr_data(nmr_dataset, what = "data_1r", ...) <- value

Arguments

nmr_dataset

An object from the nmr_dataset_family to get the raw data from

...

Passed on to methods for compatibility

what

What data do we want to get (default: data_1r)

value

A matrix

Value

a matrix

The given nmr_dataset

Examples

dataset_rds <- system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR")
dataset_1D <- nmr_dataset_load(dataset_rds)
dataset_data <- nmr_data(dataset_1D)
dataset_rds <- system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR")
dataset_1D <- nmr_dataset_load(dataset_rds)
dataset_1D_data <- nmr_data(dataset_1D)