Learn R Programming

pchc (version 1.2)

Correlation matrix for FBM class matrices (big matrices): Correlation matrix for FBM class matrices (big matrices)

Description

Correlation matrix for FBM class matrices (big matrices).

Usage

big_cor(x)

Value

The correlation matrix of the big data x.

Arguments

x

An FBM class matrix.

Author

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

The function accepts a Filebacked Big Matrix (FBM) class matrix and returns the correlation matrix. Check you matrix for possible NA values. For more information see the "bigmemory" and "bigstatsr" packages.

See Also

big_read, fedhc.skel, mmhc.skel

Examples

Run this code
# \donttest{
require(bigstatsr, quietly = TRUE)
x <- matrix( runif(100 * 50, 1, 100), ncol = 50 )
x <- bigstatsr::as_FBM(x)
a <- pchc::big_cor(x)
# }

Run the code above in your browser using DataLab