Description Usage Arguments Details Examples
This function returns data frame with default mapping of data types to schema properties for given data engine.
1 | get_default_mapping(engine = NA, debug = FALSE)
|
engine |
Data engine. See function
|
debug |
Print additional information useful for debugging. |
If successful, dataset with the following columns is returned:
Column | Description |
class | Class of data type. Raw data types are
aggregated into high-level groups. For example in
PostgreSQL, data types smallint, integer, bigint
have class integer . This grouping can be used when
using argument aggregator in function
create_schema . |
type | Data type as defined by data engine. |
dimension | If
TRUE than columns with given data type will be used
to create dimensions. |
aggregator | Defines
default aggregators for given data type. Character string
consisting of exactly six digits. If 1 than
aggregator is enabled. If 0 then aggregator is
disabled. Aggregators are defined in the following order:
average, count, distinct-count, maximum, minimum,
sum . |
Examples for column aggregator
:
111111
- All aggregators enabled
100001
- Only average and sumenabled
010000
- Only count enabled
000000
-
All aggregators disabled - for columns with given data type
there will be no measure.
1 2 3 | get_default_mapping('PostgreSQL')
get_default_mapping('R')
get_default_mapping('R', debug=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.