Description Usage Arguments Details Value Author(s) See Also Examples
This functions creates an odbcDataset object linked to a table in an
ODBC-accessible database. The print
method normally prints
information about the data set; the summary
method summarizes it
as a data frame.
1 2 3 4 5 |
channel |
a channel to the database, as returned by
|
table |
the quoted name of a database table. |
rownames |
|
x, object |
an object of class |
verbose |
if |
... |
ignored. |
Possibly further description here.
An object of class odbcDataset
, with the following components:
channel |
The ODBC channel to the database on which the table resides. |
table |
The name of the database table. |
rownames |
|
column.selector |
The position of the variable names. |
John Fox
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## These example presuppose that the data set prestige is stored as a table
## in the database attached via odbcDriverConnect().
## This data set is supplied as the data frame Prestige in the dfdb.RODBC
## package.
## Depending upon your OS/DBMS, the call to odbcDriverConnect() may have
## to be modified.
## Not run:
channel <- odbcDriverConnect()
sqlTables(channel)
Prestige <- odbcDataset(channel, "prestige") # create a pseudo-dataframe
Prestige
unclass(Prestige)
print(Prestige, verbose=TRUE)
summary(Prestige)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.