Learn R Programming

specmine (version 1.0)

convert_from_hyperspec: Convert from hyperspec

Description

Convert the dataset in the hyperspec format to a dataset of this package.

Usage

convert_from_hyperspec(hsobj, type = "undefined", description = "")

Arguments

hsobj
hyperspec object representing the dataset.
type
string representing the type of the data.
description
string representing the description of the dataset.

Value

Returns a list representing the dataset converted.

Examples

Run this code
  ## Example of converting a dataset from hyperspec 
  library(hyperSpec)
  data(flu)
  dataset = convert_from_hyperspec(flu, type = "undefined", 
	    description = "some description") 

Run the code above in your browser using DataLab