Get integrals with metadata from integrate peak positions
Source: R/nmr_integrate_regions.R
get_integration_with_metadata.Rd
Get integrals with metadata from integrate peak positions
Arguments
- integration_object
A nmr_dataset object
See also
Other peak integration functions:
Pipelines
,
nmr_identify_regions_blood()
,
nmr_identify_regions_cell()
,
nmr_identify_regions_urine()
,
nmr_integrate_peak_positions()
,
nmr_integrate_regions()
Other nmr_dataset_1D functions:
[.nmr_dataset_1D()
,
format.nmr_dataset_1D()
,
is.nmr_dataset_1D()
,
nmr_integrate_peak_positions()
,
nmr_integrate_regions()
,
nmr_meta_add()
,
nmr_meta_export()
,
nmr_meta_get()
,
nmr_meta_get_column()
,
nmr_ppm_resolution()
,
print.nmr_dataset_1D()
Examples
peak_table <- matrix(1:6, nrow = 2, ncol = 3)
rownames(peak_table) <- c("10", "20")
colnames(peak_table) <- c("ppm_1.2", "ppm1.4", "ppm1.6")
dataset <- new_nmr_dataset_peak_table(
peak_table = peak_table,
metadata = list(external = data.frame(NMRExperiment = c("10", "20"), Condition = c("A", "B")))
)
get_integration_with_metadata(dataset)
#> # A tibble: 2 × 5
#> NMRExperiment Condition ppm_1.2 ppm1.4 ppm1.6
#> <chr> <chr> <int> <int> <int>
#> 1 10 A 1 3 5
#> 2 20 B 2 4 6