hy_spc2df: Return transposed matrix of spectra in hyperSpec object

View source: R/hy_spc2df.R

hy_spc2dfR Documentation

Return transposed matrix of spectra in hyperSpec object

Description

Transpose matrix of spectra in hyperSpec object, add column with wavelengths and return as a dataframe

Usage

hy_spc2df(obj)

Arguments

obj

hyperSpec object

Value

A data frame with wavelengths in the first column and each row of hyperSpec object in a separate column.

Examples

  library(spHelper)

  chondro[[]][1,1:6]
  hy_spc2df(chondro)[1:6,1:2]

GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.