be_reader: Download and reads in a zip file with information available...

Description Usage Arguments Value See Also Examples

Description

Download and reads in a zip file with information available at Statistics Belgium

Usage

1
2
be_reader(path, download = TRUE, download_to = tempdir(),
  encoding = "UTF-8", ...)

Arguments

path

character string with the path to the file to read

download

logical indicating to download the file

download_to

character string with the path to the directory where the file will be downloaded

encoding

character with the encoding to assume for the file. Defaults 'UTF-8'. Only options are 'UTF-8', 'Latin-1' or 'unknown'

...

other arguments passed on to fread, except for na.strings and sep which are set to c('NA', ”) and '|' respectively

Value

a data.frame

See Also

fread

Examples

1
2
3
4
## Not run: 
x <- be_reader(path = "http://statbel.fgov.be/nl/binaries/TF_BIRTHS_tcm325-271723.zip")

## End(Not run)

weRbelgium/BelgiumStatistics documentation built on May 4, 2019, 2:04 a.m.