R/voivNames.R

Defines functions voivNames

Documented in voivNames

# get voiv names from shape file and convert to encoding
voivNames <- function(enc="")
{
    s <- getShape("voiv")
    if(is.null(enc))
    {
        # without diacritics
        rval <- as.character( s[["names_asci"]] )
    } else
    {
        # convert to current locale
        nams <- s[["names_lati"]]
        rval <- iconv(nams, from="latin2", to=enc)
    }
    names(rval) <- s[["teryt"]]
    rval
}

Try the mapoland package in your browser

Any scripts or data that you put into this service are public.

mapoland documentation built on May 2, 2019, 6:53 p.m.