Learn R Programming

specmine (version 1.0)

dataset_from_peaks: Dataset from peaks

Description

Converts a peak list to a dataset.

Usage

dataset_from_peaks(sample.list, metadata = NULL, description = "", type = "nmr-peaks")

Arguments

sample.list
list with the peaks from each sample.
metadata
data frame with the associated metadata.
description
string with the description of the dataset.
type
string that represents the type of the data.

Value

Returns the dataset from the peak list.

Examples

Run this code
## Not run: 
#     ## Example of converting a peak list to a dataset (computationally heavy)
#     data(propolisSampleList)
#     dataset = dataset_from_peaks(propolisSampleList, metadata = NULL, 
# 	      description = "some text", type = "nmr-peaks")  
# ## End(Not run)

Run the code above in your browser using DataLab