idadf,idaSave,idaUpdate | R Documentation |
These functions allow to query, store and update data in the database.
Usually, it is easier to use idaQuery
,ida.data.frame
and as.ida.data.frame
instead of these methods.
They can be useful, however, if an explicit connection object is needed, e.g. if there are several connections to different databases.
idadf(idaConn, query)
idaSave(idaConn, dfrm, tblName = "", rowName = "", conType = "odbc")
idaUpdate(db2Conn, updf, dfrm, idaIndex = "", conType = "odbc")
idaConn |
The IDA connection object. |
db2Conn |
The IDA connection object. |
query |
A query. |
dfrm |
A data.frame to store. |
tblName |
Name of the table to which to store the data. |
rowName |
Name of the row name column. |
updf |
Name of the table to update. |
idaIndex |
Name of the index column. |
conType |
Type of the connection. |
idadf
,idaSave
and idaUpdate
are simple wrappers around the RODBC functions sqlQuery
,
sqlSave
and sqlUpdate
.
Usually, it is easier to use idaQuery
,ida.data.frame
and as.ida.data.frame
instead of these methods.
idaQuery
,ida.data.frame
,as.ida.data.frame
,sqlQuery
,sqlSave
,sqlUpdate
## Not run:
# create connection to DB
con <- idaConnect("BLUDB", "", "")
# create data.frame from table
df <- idadf(con, "SELECT * FROM IRIS")
# close the connection again
idaClose(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.