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.name
The name of the table
row.names
A vector of row names, defaults to NULL
col.names
A vector of column names, defaults to NULL
as.is
List character-type columns that should not be converted to factors, defaults to FALSE
as.matrix
If 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]