is.db.data.frame | R Documentation |
db.data.frame
This function checks if the input is of type db.data.frame
.
is.db.data.frame(x)
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
.
## 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.