Description Usage Arguments Details Value Examples
Converts 1-nn file from rosstat to tibble
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()
)
|
path_to_source |
name of the original 1-nn.doc file |
access_date |
date of access is appended to every observation |
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
tibble
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.