Description Usage Arguments Value Note See Also Examples
These functions convert a user-level object
into an R object that can be attached
as an element of the R search path.
The newRFunctionTable
works on objects
that have methods for the
dbexists
, dbread
, ...
functions.
newRClosureTable
works on a collection of
functions (usually sharing state with a common environment)
that are called directly by the C-level interface between
the R engine and the user-level table.
1 2 | newRFunctionTable(db)
newRClosureTable(db)
|
db |
a user-defined database object.
When passed to |
An object of class UserDefinedTable
that is an external pointer to a C-level
object that represents the R table.
This object can then be used in a call
to attach
.
This interface is experimental. Please ensure that important data is saved before using this.
attach
http://developer.r-project.org/RTableObjects.pdf
1 2 3 4 5 6 7 | source(system.file("examples", "ListTable.S", package ="RObjectTables"))
attach(newRClosureTable(createListHandlers(x=1:3, y = letters[1:4])), name ="my list table")
assign("x", 1, pos = "my list table")
objects(pos = 2)
exists("x", pos = 2)
remove("x", 1, pos = "my list table")
exists("x", pos = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.