Learn R Programming

specmine (version 3.1.6)

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)
	library(specmine.datasets)
	data(propolisSampleList)
    dataset = dataset_from_peaks(propolisSampleList, metadata = NULL, 
	      description = "some text", type = "nmr-peaks")  
# }

Run the code above in your browser using DataLab