dataset_from_peaks: Dataset from peaks

Description Usage Arguments Value Examples

Description

Converts a peak list to a dataset.

Usage

1
2
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

1
2
3
4
5
    ## Example of converting a peak list to a dataset (computationally heavy)
	library(specmine.datasets)
	data(propolisSampleList)
    dataset = dataset_from_peaks(propolisSampleList, metadata = NULL, 
	      description = "some text", type = "nmr-peaks")  

specmine documentation built on Sept. 21, 2021, 5:06 p.m.