Skip to content

Some na.strings are probably missing #1

@lgnbhl

Description

@lgnbhl

Firstly, thank you for this very useful package!

I got an error when using pxR::read.px in order to read some PX files from the Swiss Federal Statistical Office (or BFS) online database (https://www.pxweb.bfs.admin.ch/).

I presume that the error comes from a missing na.strings from the pxR::read.px function: "....." (5 dots)

Would it be possible to fix this problem?
Many thanks in advance!

Example

library(pxR)
url <- "https://www.pxweb.bfs.admin.ch/DownloadFile.aspx?file=px-x-1604000000_104"
dataset <- pxR::read.px(url)
## Error in scan(tc, na.strings = na.strings, quote = NULL, quiet = TRUE) :                                             
## scan() attendait 'a real' et a reçu '"....."'                                          

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions