engines | R Documentation |
The engines enumeration contains all possible options
for the "engine" parameter of the catalog
function. Use
this enumeration to specify what kind of data you would like to load.
Options are: csv, dbf, rda, rds, rdata, sas7bdat, xls, xlsx, and xpt.
engines
An object of class etype
of length 9.
The engine parameter string.
The engines
enumeration is used on the catalog
function. See that function documentation for additional details.
#' # Get data directory
pkg <- system.file("extdata", package = "fetch")
# Create catalog
ct <- catalog(pkg, engines$csv)
# Example 1: Catalog all rows
# View catalog
ct
# data catalog: 6 items
# - Source: C:/packages/fetch/inst/extdata
# - Engine: csv
# - Items:
# data item 'ADAE': 56 cols 150 rows
# data item 'ADEX': 17 cols 348 rows
# data item 'ADPR': 37 cols 552 rows
# data item 'ADPSGA': 42 cols 695 rows
# data item 'ADSL': 56 cols 87 rows
# data item 'ADVS': 37 cols 3617 rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.