Skip to contents

Extract parts of an nmr_dataset_1D

Usage

# S3 method for class 'nmr_dataset_1D'
x[i]

Arguments

x

an nmr_dataset_1D object

i

indices of the samples to keep

Value

an nmr_dataset_1D with the extracted samples

Examples

dir_to_demo_dataset <- system.file("dataset-demo", package = "AlpsNMR")
dataset <- nmr_read_samples_dir(dir_to_demo_dataset)
dataset_1D <- nmr_interpolate_1D(dataset, axis = c(min = -0.5, max = 10, by = 2.3E-4))
dataset_1D[0]
#> An nmr_dataset_1D (0 samples)