filter.nmr_dataset_family: Keep samples based on metadata column criteria

Description Usage Arguments Value See Also Examples

View source: R/nmr_dataset_family.R

Description

Keep samples based on metadata column criteria

Usage

1
2
## S3 method for class 'nmr_dataset_family'
filter(.data, ...)

Arguments

.data

An nmr_dataset_family object

...

conditions, as in dplyr

Value

The same object, with the matching rows

See Also

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

Examples

1
2
3
4
5
6
7
8
9
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))

## example 1
sample_10 <- filter(dataset_1D, NMRExperiment == "10")

## example 2
#test_samples <- dataset_1D %>% filter(nmr_peak_table$metadata$external$Group == "placebo")

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