We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haven::write_xpt
The below data frame has 3 rows that the end of 2 rows are NA and "", the output xpt file only keeps the first non missing rows.
NA
""
whether this case is normal or how to keep all 3 rows
df <- data.frame(a = c("a", NA, "")) df2 <- haven::write_xpt(df, "test.xpt") identical(df, df2) #> [1] TRUE df3 <- haven::read_xpt("test.xpt") df3 #> # A tibble: 1 × 1 #> a #> <chr> #> 1 a identical(df, df3) #> [1] FALSE
Created on 2024-05-15 with reprex v2.1.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The below data frame has 3 rows that the end of 2 rows are
NA
and""
, the output xpt file only keeps the first non missing rows.whether this case is normal or how to keep all 3 rows
Created on 2024-05-15 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: