convert_1_nn_doc: Converts 1-nn file from rosstat to tibble

Description Usage Arguments Details Value Examples

View source: R/converters.R

Description

Converts 1-nn file from rosstat to tibble

Usage

1
2
3
4
convert_1_nn_doc(
  path_to_source = "http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-08.doc",
  access_date = Sys.Date()
)

Arguments

path_to_source

name of the original 1-nn.doc file

access_date

date of access is appended to every observation

Details

Converts 1-nn file from rosstat to tibble. The function uses libre office to convert .doc files. So libre office should be installed. And path to libre office should be known by the package.

Probably deprecated, as rosstat started to use xlsx files.

Written by: Rifat Enileev

Value

tibble

Examples

1
2
3
4
5
6
7
# docxtractr::set_libreoffice_path("/usr/bin/libreoffice")  # ubuntu or macos
# Sys.setenv(LD_LIBRARY_PATH = "/usr/lib/libreoffice/program/") # ubuntu protection against libreglo.so not found
# docxtractr::set_libreoffice_path("C:/Program Files/LibreOffice/program/soffice.exe")  # windows
# one = convert_1_nn_doc()
# one = convert_1_nn_doc("http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-08.doc")
# two = convert_1_nn_doc("http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-03.doc")
# three = convert_1_nn_doc("http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-11.doc")

kassandra-ru/kassandr documentation built on Jan. 1, 2022, 7:39 a.m.