Description Usage Arguments Value Examples
Materialise virtual data object monet.frame
into R objects data.frame
or vector
.
1 2 | ## S3 method for class 'monet.frame'
as.data.frame(x, row.names, optional, warnSize=TRUE, ... )
|
x |
A |
row.names |
Unused. |
optional |
Unused. |
warnSize |
Prevent user from loading too many tuples from the DB. The limit is
calculated by multiplying |
... |
Unused. |
returns a data.frame
or vector populated with data from the database table
that was wrapped by monet.frame
. Note that as.vector
can only be used on single-column
moent.frame
objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# connect to MonetDB
conn <- dbConnect(MonetDB.R(), "monetdb://localhost/demo")
# write some test data
data(iris)
dbWriteTable(conn, "iris", iris)
# construct monet.frame
frame <- monet.frame(conn,"iris")
# convert to R data.frame
rframe <- as.data.frame(frame)
rvector <- as.vector(frame$sepal_width)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.