Convert monet.frame into data.frame.

Description

Materialise virtual data object monet.frame into R objects data.frame or vector.

Usage

1
2
   ## S3 method for class 'monet.frame'
 as.data.frame(x, row.names, optional, warnSize=TRUE, ... )

Arguments

x

A monet.frame monet.frame virtual data object.

row.names

Unused.

optional

Unused.

warnSize

Prevent user from loading too many tuples from the DB. The limit is calculated by multiplying nrow with ncol. If set to false, the warning is disabled. The current limit is 10.000.000.

...

Unused.

Value

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.

Examples

 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)