Description Usage Arguments Details Value Note See Also Examples
Show the column names of an Oracle table (or view) and various column
properties, not unlike the Oracle SQL*Plus DESC
command.
Also show the number of rows when the table was last analyzed.
1 |
table |
Oracle table name, often in the owner.table format. |
tolower |
whether output table strings should be lowercased. |
dots |
whether underscores in column names should be replaced with dots, converting col_name to col.name. |
... |
passed to |
The ...
argument can be used to set username
,
password
, and/or dbname
(see dbConnect
).
Abbrevations like user
and pass are allowed. The default
database name is determined by the environment variable
ORACLE_SID, which can be redefined within an R session using
Sys.setenv(ORACLE_SID="foo")
.
A data frame with named rows and the following columns:
name |
Oracle column name. |
Sclass |
storage mode in R. |
type |
Oracle type. |
len |
Oracle length. |
precision |
Oracle precision. |
scale |
Oracle scale. |
isVarLength |
whether the variable has varying length in Oracle. |
nullOK |
whether the variable can be null. |
Furthermore, the data frame contains two attributes: rows
(the
number of rows when the table was last analyzed) and analyzed
(when the table was last analyzed). These attributes are not available
for all Oracle tables, but are more likely to be available when the
main argument table
has the full owner.table format.
See the Oracle manuals for details about type, length, precision, scale, and nulls.
desc
is to Oracle tables as ll
(in package gdata)
is to R data frames.
ora
gives an overview of the package.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.