Commit 2c0b9ac4 by Jan Wijffels

fix utf-8 issue + add png in readme

parent fe5f3aea
......@@ -13,7 +13,9 @@ This data is available in several objects:
- BE_ADMIN_HIERARCHY: data.frame with administrative hierarchy of Belgium
- BE_ADMIN_AGGLOMERATIONS: SpatialPolygonsDataFrame with polygons and data at the level of an agglomeration (200m)
![](inst/img/belgiummaps_statbel.png)
## Installation
The package is available at datatailor.be
......
......@@ -62,7 +62,8 @@ colnames(BE_ADMIN_SECTORS@data) <- tolower(make.names(colnames(BE_ADMIN_SECTORS@
isutf8 <- function(x){
for(column in colnames(x)){
if(is.character(x[[column]])){
if(is.character(x[[column]]) | is.factor(x[[column]])){
x[[column]] <- as.character(x[[column]])
Encoding(x[[column]]) <- "UTF-8"
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment