Description Usage Arguments Value Details Examples
View source: R/RMariaDBHelper.R
Retrieve a database table as a dataframe.
1 | db_fetch_table(tablename, n = -1, conf_file = "~/.db_conf.yml")
|
tablename |
(character) A table name to query for all records. |
n |
(integer) The number of rows to return. (Default -1 means all rows.) |
conf_file |
(character) A file containing database connection parameters. (Default: "~/.db_conf.yml") |
(dataframe) The query result returned as a dataframe.
A SQL query will return a table as a dataframe. Use 'n' to limit the number of rows returned, where n = -1 means all records.
1 2 3 4 | ## Not run:
db_fetch_table("iris")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.