dbReadTable.PgSQL.conn {RdbiPgSQL} | R Documentation |
Read a PostgreSQL table
Description
dbReadTable
fetches all values in a table and returns them in a
data frame.
Usage
dbReadTable.PgSQL.conn(conn, ...)
Arguments
conn |
A connection object |
... |
Other arguments, described in details |
Details
The ... arguments:
itemize {
table.nameThe name of the table
row.namesA vector of row names, defaults to NULL
col.namesA vector of column names, defaults to NULL
as.isList character-type columns that should not be converted
to factors, defaults to FALSE
as.matrixIf all columns of the resulting data.frame are the
same, will attempt to convert the data.frame to a matrix
before returning it
}
The as.is
argument act like its equivalent in read.table
.
Value
A data frame, unless as.matrix is specified and all the columns are
identically typed in which case a matrix is returned.
Author(s)
Timothy H. Keitt
References
http://rdbi.sourceforge.net/
See Also
dbWriteTable
[Package
RdbiPgSQL version 1.12.0
Index]