geo_normalize.data.frame | R Documentation |
Some database driver coerce column data to another type (char to int) which is can cause problems with some code with mixed alphanumeric and numeric codes (sometimes to int, sometimes to char), cast to int drop zerofilled codes making the code unuseable.
## S3 method for class 'data.frame'
geo_normalize(data, columns = NULL, levels = NULL, ...)
data |
data to normalize |
columns |
columns to normalize, named vector with level name as name for each column if levels is null |
levels |
corresponding level for each column. if NULL will use names of 'columns' parameter |
... |
extra parameters for specific methods |
This function try to find a normalizer function associated with provided levels. Normalizer functions are
defined with the geographic levels using platform_geographic_levels()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.