[.nmr_dataset {AlpsNMR} | R Documentation

## Extract parts of an nmr_dataset

### Description

Extract parts of an nmr_dataset

### Usage

    ## 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

    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

[Package AlpsNMR version 3.2.3 Index]