Learn R Programming

PathwaySpace (version 0.99.4)

vertexWeight,PathwaySpace-method: Accessor functions for fetching slots from a PathwaySpace object.

Description

Get or set 'weights' for a PathwaySpace class object.

Usage

# S4 method for PathwaySpace
vertexWeight(pts)

# S4 method for PathwaySpace vertexWeight(pts) <- value

Value

A numeric vector.

Arguments

pts

A PathwaySpace class object.

value

A numeric vector with values representing vertex weights. This vector should be aligned to the "vertex" slot.

Examples

Run this code
data('gtoy1', package = 'PathwaySpace')
pts <- buildPathwaySpace(gtoy1, nrc = 100)
vertexWeight(pts)

Run the code above in your browser using DataLab