Extract parts of an nmr_dataset
Arguments
- x
an nmr_dataset object
- i
indices of the samples to keep
See also
Other subsetting functions:
[.nmr_dataset_1D()
,
[.nmr_dataset_peak_table()
,
filter.nmr_dataset_family()
,
nmr_pca_outliers_filter()
Examples
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