print.dcat {fetch} | R Documentation |
Print a data catalog
Description
A class-specific instance of the print
function for
a data catalog. The function prints the catalog in a summary manner.
Use verbose = TRUE
option to print the catalog as a list.
Usage
## S3 method for class 'dcat'
print(x, ..., verbose = FALSE)
Arguments
x |
The catalog to print. |
... |
Any follow-on parameters. |
verbose |
Whether or not to print the catalog in verbose style. By default, the parameter is FALSE, meaning to print in summary style. |
Value
The object, invisibly.
Examples
# Get data directory
pkg <- system.file("extdata", package = "fetch")
# Create catalog
ct <- catalog(pkg, engines$csv)
# View catalog
print(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
[Package fetch version 0.1.5 Index]