summary-methods: Summary methods

Description Usage Arguments Value Examples

Description

Methods available to summarize the various S4 objects of ASICS package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S4 method for signature 'Spectra'
show(object)

## S4 method for signature 'Spectra'
summary(object)

## S4 method for signature 'Spectra'
length(x)

## S4 method for signature 'Spectra'
dim(x)

## S4 method for signature 'ASICSResults'
show(object)

## S4 method for signature 'ASICSResults'
dim(x)

## S4 method for signature 'AnalysisResults'
show(object)

## S4 method for signature 'AnalysisResults'
summary(object)

Arguments

object

An object of class Spectra, PureLibrary, ASICSResults or AnalysisResults.

x

An object of class Spectra, PureLibrary or ASICSResults.

Value

A summary of the object, its length or its dimensions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Import data and create object
current_path <- file.path(system.file("extdata", package = "ASICS"),
                          "spectra_example.txt")
spectra_data <- read.table(current_path, header = TRUE, row.names = 1)
spectra_obj <- createSpectra(spectra_data)

# Summary
summary(spectra_obj)
# Length
length(spectra_obj)
# Dimensions
dim(spectra_obj)

ASICS documentation built on Nov. 8, 2020, 8:19 p.m.