sub-.nmr_dataset: Extract parts of an nmr_dataset

Description Usage Arguments Value See Also Examples

Description

Extract parts of an nmr_dataset

Usage

1
2
## S3 method for class 'nmr_dataset'
x[i]

Arguments

x

an nmr_dataset object

i

indices of the samples to keep

Value

an nmr_dataset with the extracted samples

See Also

Other subsetting functions: [.nmr_dataset_1D(), [.nmr_dataset_peak_table(), filter.nmr_dataset_family(), nmr_pca_outliers_filter()

Other nmr_dataset functions: format.nmr_dataset(), load_and_save_functions, new_nmr_dataset(), nmr_interpolate_1D(), nmr_meta_add(), nmr_meta_export(), nmr_meta_get_column(), nmr_meta_get(), nmr_ppm_resolution(), nmr_read_samples(), print.nmr_dataset(), validate_nmr_dataset()

Examples

1
2
3
dir_to_demo_dataset <- system.file("dataset-demo", package = "AlpsNMR")
dataset <- nmr_read_samples_dir(dir_to_demo_dataset)
dataset2 <- dataset[1:3] # get the first 3 samples

AlpsNMR documentation built on April 1, 2021, 6:02 p.m.