Skip to content

write_xpt() assigns format "$" and informat "$" by default #456

@jeblucas

Description

@jeblucas

write_xpt() seems to apply a currency ($) format/informat designation on exported columns (at least in version = 5 which is what I need for FDA filings).

Attaching a screenshot of the output as seen in SAS Universal Viewer with issue labeled.

library(tibble)
library(haven)
try <- tibble::tibble("STUDYID" = as.character(20011234), USUBJID = as.character("20011234-5678"))
glimpse(try)
#> Observations: 1
#> Variables: 2
#> $ STUDYID <chr> "20011234"
#> $ USUBJID <chr> "20011234-5678"
write_xpt(try, file.path(getwd(),"pp.xpt"), version = 5)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions