Learn R Programming

gMCP (version 0.8-17)

corMatWizard: Graphical User Interface for the creation of correlation matrices

Description

Starts a graphical user interface for the correlation matrices.

Usage

corMatWizard(n, matrix, names, envir = globalenv())

Value

The function itself returns NULL. But with the dialog a symmetric matrix of dimension \(n\times n\) can be created or edited that will be available in R under the specified variable name after saving.

Arguments

n

Square root of the dimension of the quadratic \(n\times n\)-Matrix.

matrix

Variable name of matrix of dimension \(n\times n\) to start with.

names

Row and column names. (Default will be H1,H2,...,Hn.)

envir

Environment where the object matrix is located and/or it should be saved (default is the global environment).

Author

Kornelius Rohmeyer rohmeyer@small-projects.de

Examples

Run this code
if (FALSE) {
corMatWizard(5) # is equivalent to
corMatWizard(matrix=diag(5))
corMatWizard(names=c("H1", "H2", "H3", "E1", "E2"))
C <- cor(matrix(rnorm(100),10), matrix(rnorm(100),10))
corMatWizard(matrix="C") # or
corMatWizard(matrix=C) 
}

Run the code above in your browser using DataLab