Learn R Programming

flowPlots (version 1.20.0)

stackedData-methods: Method stackedData from Class "StackedData"

Description

This function is a method of the StackedData class which retrieves the stackedData from a StackedData object or which assigns the stackedData data slot of a StackedData object.

Usage

# Get the stacked data from the StackedData object stackedData(object)
# Set the stacked data slot of a StackedData object "stackedData"(object) <- value

Arguments

object
an object of the StackedData class
value
a replacement value

Value

data frame of stacked data.

Methods

signature(object = "StackedData")
Get the stackedData from the object.
signature(object = "StackedData", value = "data.frame")
Set the value of the stackedData slot in the object.

See Also

StackedData

Examples

Run this code

## Set the stacked data slot WHILE creating a new stacked data object

# Load stacked data
data(adultsNeonates)
# Create a stacked data object
stackedDataObject = new("StackedData", stackedData=adultsNeonates)

## Set the stacked data slot AFTER creating a new stacked data object

# Load stacked data
data(adultsNeonates)
# Create a stacked data object
stackedDataObject = new("StackedData")
# Set the stacked data slot
stackedData(stackedDataObject) = adultsNeonates

## Set the stacked data slot after creating a new stacked data object

stackedDataFrame = readStackedData(fileName=system.file("extdata","adultsNeonates.csv", package="flowPlots"))    
stackedDataObject = new("StackedData")
stackedData(stackedDataObject) = stackedDataFrame

Run the code above in your browser using DataLab