Learn R Programming

ribiosPlot (version 1.3.0)

as.data.frame.PCAScoreMatrix: Coerece a PCAScoreMatrix into data.frame

Description

Coerece a PCAScoreMatrix into data.frame

Usage

# S3 method for PCAScoreMatrix
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Value

A data.frame consisting of the score matrix

Arguments

x

A PCAScoreMatrix S3 object.

row.names

See as.data.frame.

optional

See as.data.frame.

...

See as.data.frame

See Also

Examples

Run this code

myPCmat <- PCAScoreMatrix(matrix(rnorm(15),ncol=3), c(0.25, 0.15, 0.1))
as.matrix(myPCmat)

Run the code above in your browser using DataLab