Implements the S4groupGeneric group generic functions for dbMatrix objects.
Value
The result of applying the respective summary function to the dbMatrix object. The type of the return value depends on the specific function called.
Examples
mat <- matrix(1, nrow = 3, ncol = 3)
dbmat <- as.dbMatrix(mat)
#> duckdb keeps downloaded extensions and secrets in a temporary directory:
#> ℹ /tmp/RtmpQoK7i1/duckdb
#> This is removed when the R session ends.
#> • Extensions are re-downloaded each session.
#> • Secrets are lost.
#> ℹ Run duckdb(shared_home = TRUE) (or create ~/.duckdb) to keep them (suitable for most users).
#> ℹ Run duckdb(shared_home = FALSE) to accept the temporary directory (and silence this message).
#> ℹ See ?duckdb_storage for details and alternatives.
max(dbmat)
#> [1] 1
min(dbmat)
#> [1] 1
prod(dbmat)
#> [1] 1
sum(dbmat)
#> [1] 9
any(dbmat > 0)
#> [1] TRUE
all(dbmat > 0)
#> [1] TRUE