Learn R Programming

OpenSpecy (version 1.2.0)

head.OpenSpecy: Generic Open Specy Methods

Description

Methods to visualize and convert OpenSpecy objects.

Usage

# S3 method for OpenSpecy
head(x, ...)

# S3 method for OpenSpecy print(x, ...)

# S3 method for OpenSpecy plot(x, ...)

# S3 method for OpenSpecy lines(x, ...)

# S3 method for OpenSpecy summary(object, ...)

# S3 method for OpenSpecy as.data.frame(x, ...)

# S3 method for OpenSpecy as.data.table(x, ...)

Value

head(), print(), and summary() return a textual representation of an OpenSpecy object. plot() and lines() return a plot. as.data.frame() and as.data.table() convert OpenSpecy

objects into tabular data.

Arguments

x

an OpenSpecy object.

object

an OpenSpecy object.

...

further arguments passed to the respective default method.

Author

Zacharias Steinmetz, Win Cowger

Details

head() shows the first few lines of an OpenSpecy object. print() prints the contents of an OpenSpecy object. summary() produces a result summary of an OpenSpecy object. plot() produces a matplot() of an OpenSpecy object; lines() adds new spectra to it.

See Also

Examples

Run this code
data("raman_hdpe")

# Printing the OpenSpecy object
print(raman_hdpe)

# Displaying the first few lines of the OpenSpecy object
head(raman_hdpe)

# Plotting the spectra
plot(raman_hdpe)

Run the code above in your browser using DataLab