Description Usage Arguments Details Value Author(s) See Also Examples
This function checks if the input is of type db.data.frame
.
1 |
x |
The input can be of any type. |
is.db.data.frame()
returns TRUE
if x
is of type db.data.frame
. Otherwise, it returns FALSE
.
A logical. Returns TRUE
if the input is of type db.data.frame
Author: Predictive Analytics Team at Pivotal Inc.
Maintainer: Frank McQuillan, Pivotal Inc. fmcquillan@pivotal.io
as.db.data.frame
Convert an object into another object of type db.data.frame
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 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)
## create a table from the example data.frame "abalone"
tmp <- as.db.data.frame(abalone, conn.id = cid, verbose = FALSE)
x <- db.data.frame(content(tmp), conn.id = cid, key = 'id')
## getting the primary key
is.db.data.frame(x) #check if x is of type db.data.frame
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.