This function extracts a subset of a
db.obj which could either be
Indices specifying elements to extract or replace. Indices are ‘numeric’ or ‘character’ vectors or empty (missing) or ‘NULL’. Numeric values are coerced to integer as by ‘as.integer’ (and hence truncated towards zero).
db.Rquery object is returned which is a SQL query to extract the
Author: Predictive Analytics Team at Pivotal Inc.
Maintainer: Frank McQuillan, Pivotal Inc. [email protected]
[-methods Operator to extract elements
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
## 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) lk(x[1:3]) lk(subset(x, 1:3)) 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.