unique-methods | R Documentation |
This function gives the unique values of a db.obj
, which are
the column
unique of a db.table
or db.view
.
## S4 method for signature 'db.obj'
unique(x, incomparables = FALSE, ...)
x |
A |
incomparables |
Not implemented. |
... |
Not implemented. |
An db.Rquery
, whose column is the unique value of the column.
This function applies only onto db.obj
with
one column. If you want to put the unique values from multiple columns
together, you have to use db.array
Author: Predictive Analytics Team at Pivotal Inc.
Maintainer: Frank McQuillan, Pivotal Inc. fmcquillan@pivotal.io
db.obj
, db.data.frame
,
db.table
, db.view
,
db.Rquery
are the class hierarchy structure of
this package.
## Not run:
## 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 <- as.db.data.frame(abalone, conn.id = cid, verbose = FALSE)
lk(x, 10)
## get unique of all columns
unique(x$sex)
db.disconnect(cid, verbose = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.