View source: R/1-functions_processing.R
nmr_assign_bins | R Documentation |
Assign group (bin name) to each row of the data based on
the ppm
column.
nmr_assign_bins(dat, binset)
dat |
Input dataframe. This could be spectral data, or peak picked data. Must include a 'ppm' column for compound class assignment |
binset |
A binset; e.g. |
The input data with a new group
column whose entries
are drawn from the binset. Entries will be NA
if a ppm
value does not fall into any group.
Kaizad Patel
sdir <- system.file("extdata", "kfp_hysteresis", "spectra_mnova", package = "nmrrr")
spec <- nmr_import_spectra(path = sdir, method = "mnova")
nmr_assign_bins(spec, bins_Clemente2012)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.