geo_normalize.default: Normalize with geographic codes for a level after it has been...

View source: R/geography.r

geo_normalize.defaultR Documentation

Normalize with geographic codes for a level after it has been loaded by the database.

Description

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.

Usage

## Default S3 method:
geo_normalize(data, level, ...)

Arguments

data

data to normalize

level

character corresponding level name for the data

...

extra parameters for specific methods

Details

This function try to find a normalizer function associated with provided levels. Normalizer functions are defined with the geographic levels using platform_geographic_levels()


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.