as.data.frame.feem: Transform a FEEM object into a data.frame

View source: R/feem.R

as.data.frame.feemR Documentation

Transform a FEEM object into a data.frame

Description

Transform a FEEM object from its matrix form accompanied by vectors of wavelengths into a three-column form consisting of 3{ (\lambda_\mathrm{em}, \lambda_\mathrm{ex}, I)

Usage

  ## S3 method for class 'feem'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
  ## S3 method for class 'feemcube'
as.data.frame(x, ...)

Arguments

x

A FEEM object, or a FEEM cube object.

row.names

Passed to data.frame. If default of NULL is used, data.frame will generate sequential integer row.names.

optional

This option is required for compatibility with as.data.frame generic, but is ignored, since the column names are already syntactic and the row names are generated by data.frame automatically by default.

...

Passed as-is to data.frame.

Details

Rows where intensity is NA are omitted from the output.

Value

A data.frame containing three numeric columns:

emission

Emission wavelength, nm.

excitation

Excitation wavelength, nm.

intensity

Fluorescence intensity at 3{ (\lambda_\mathrm{em}, \lambda_\mathrm{ex})

(\lambda.em, \lambda.ex) (&lambda;<sub>em</sub>, &lambda;<sub>ex</sub>)

See Also

feem.data.frame

Examples

  z <- feem(matrix(1:42, nrow = 7), 1:7, 1:6)
  head(as.data.frame(z))

albatross documentation built on May 29, 2024, 9:10 a.m.