The function gets the ppm resolution of the dataset using the median of the difference of data points.

nmr_ppm_resolution(nmr_dataset)

# S3 method for nmr_dataset
nmr_ppm_resolution(nmr_dataset)

# S3 method for nmr_dataset_1D
nmr_ppm_resolution(nmr_dataset)

Arguments

nmr_dataset

An object containing NMR samples

Value

Numeric (the ppm resolution, measured in ppms)

Examples

nmr_dataset <- nmr_dataset_load(system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR"))
nmr_ppm_resolution(nmr_dataset)
#> [1] 0.02
message("the ppm resolution of this dataset is ", nmr_ppm_resolution(nmr_dataset), " ppm")
#> the ppm resolution of this dataset is 0.02 ppm

nmr_dataset <- nmr_dataset_load(system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR"))
nmr_ppm_resolution(nmr_dataset)
#> [1] 0.02
message("the ppm resolution of this dataset is ", nmr_ppm_resolution(nmr_dataset), " ppm")
#> the ppm resolution of this dataset is 0.02 ppm

nmr_dataset <- nmr_dataset_load(system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR"))
nmr_ppm_resolution(nmr_dataset)
#> [1] 0.02
message("the ppm resolution of this dataset is ", nmr_ppm_resolution(nmr_dataset), " ppm")
#> the ppm resolution of this dataset is 0.02 ppm