Learn R Programming

pchc (version 0.4)

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)

Arguments

x

An FBM class matrix.

Value

The correlation matrix of the big data x.

Details

The function accepts an 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
# NOT RUN {
dataset <- matrix( runif(100 * 50, 1, 100), ncol = 50 )
write.csv(dataset, "dataset.csv", row.names = FALSE)
x <- pchc::big_read("dataset.csv", header = TRUE)
a <- pchc::big_cor(x) ## No NA values

write.csv(dataset, "dataset.csv")
x <- pchc::big_read("dataset.csv", header = TRUE)
a <- pchc::big_cor(x) ## it contains NA values
# }

Run the code above in your browser using DataLab