Skip to contents

This function provides a custom print method for objects of class `nfd`. It displays a header indicating that the object is an `nfd` object and then proceeds to print the underlying matrix data dimension.

Usage

# S3 method for class 'nfd'
print(x, ...)

Arguments

x

An object of class `nfd`.

...

Additional arguments passed to the default print method.

Value

Invisibly returns the input object `x` after printing.

Examples

# Create a standard matrix
mat <- matrix(1:9, nrow = 3, ncol = 3)

# Convert the matrix to an 'nfd' object
nfd_obj <- nfd(mat)

# Print the 'nfd' object
print(nfd_obj)
#> An object of class 'nfd':
#> Dimensions: 3 x 3
#> Classes: nfd, matrix, array
#> 
#> First few entries:
#>      [,1] [,2] [,3]
#> [1,]    1    4    7
#> [2,]    2    5    8
#> [3,]    3    6    9