
Print method for clusters_results objects
Source: R/testing_through_time.R
print.clusters_results.RdThis method provides a concise console representation of the output from
testing_through_time, including the number of detected
clusters and a compact table summarising each cluster's onset, offset,
and duration. Values are rounded for readability.
Usage
# S3 method for class 'clusters_results'
print(x, digits = 3, ...)Arguments
- x
An object of class
"clusters_results"as returned bytesting_through_time.- digits
Integer; number of decimal places used when printing numeric values (default:
3).- ...
Additional arguments (currently ignored).
Details
The printed cluster table includes:
cluster_id: numeric identifier of the cluster;cluster_onset: estimated temporal onset of the cluster;cluster_offset: estimated temporal offset of the cluster;duration: duration of the cluster, computed ascluster_offset - cluster_onset.
If no clusters exceed the posterior odds threshold, an informative message is displayed and no table is printed.