Learn R Programming

PivotalR (version 0.1.18.5)

db.Rcrossprod-class: Class "db.Rcrossprod"

Description

This is the result generated by crossprod, and a sub-class of '>db.Rquery

Arguments

Slots

As a sub-class of '>db.Rquery, this class contains all the slots that belong to '>db.Rquery. It also has one additional slot as is described in the following.

.is.crossprod:

A vector of logical values, which has the same length as the number of columns. Whether each column is the result of crossprod.

.is.symmetric:

A vector of logical values, which has the same length as the number of columns. Whether the column contains matrices that are symmetric.

.dim:

Dimension of the matrix represented by this object.

Extends

Class "'>db.Rquery", directly.

Methods

All methods for '>db.data.frame can be applied onto this class.

See Also

'>db.Rquery is the superclass.

lk or lookat display the matrix

Examples

Run this code
# NOT RUN {
showClass("db.Rcrossprod")

<!-- %% @test .port Database port number -->
<!-- %% @test .dbname Database name -->
## set up the database connection
## Assume that .port is port number and .dbname is the database name
cid <- db.connect(port = .port, dbname = .dbname, verbose = FALSE)

## x points to table "abalone"
x <- as.db.data.frame(abalone, conn.id = cid, verbose = FALSE)

lookat(crossprod(x[,-c(1,2)]))

x$arr <- db.array(1, x$length, x$diameter)

lookat(crossprod(x$arr))

db.disconnect(cid, verbose = FALSE)
# }

Run the code above in your browser using DataLab