Learn R Programming

patterncausality (version 0.2.0)

print.pc_matrix: Print Pattern Causality Matrix

Description

Prints the pattern causality matrix object. This function displays the specified causality matrix (or all matrices) with a preview of the first 5 rows and columns.

Usage

# S3 method for pc_matrix
print(x, type = "all", ...)

Value

Invisibly returns the input object.

Arguments

x

A pc_matrix object.

type

The type of matrix to print ("all" or "positive", "negative", "dark").

...

Additional arguments passed to the print function.

Examples

Run this code
data(climate_indices)
dataset <- climate_indices[, -1]
pc_matrix_obj <- pcMatrix(dataset, E = 3, tau = 1, 
  metric = "euclidean", h = 1, weighted = TRUE, 
  verbose = FALSE)
print(pc_matrix_obj, type = "positive")

Run the code above in your browser using DataLab