Skip to content
New issue

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

[R/write] add na.strings argument to write functions #256

Merged
merged 2 commits into from
Jun 30, 2022
Merged

Conversation

JanMarvin
Copy link
Owner

Add option to write custom na.strings. It is na.strings even though it allows just a single value, to match the identical argument when reading. This allows three options if na.strings

  • is missing: write #N/A exception to output
  • is NULL: write nothing
  • is character or numeric: write inlineStr of as.character(na.strings)

This applies to NA only and is intended to be used when replacing NA in numeric data with character strings or empty cells.

@JanMarvin JanMarvin linked an issue Jun 30, 2022 that may be closed by this pull request
@JanMarvin JanMarvin merged commit e9e028d into main Jun 30, 2022
@JanMarvin JanMarvin deleted the write_nastrings branch June 30, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom na.string when writing
1 participant