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

Error removing blank values in character strings #38

Open
mbcarlos96 opened this issue Mar 9, 2018 · 1 comment
Open

Error removing blank values in character strings #38

mbcarlos96 opened this issue Mar 9, 2018 · 1 comment
Assignees
Labels

Comments

@mbcarlos96
Copy link
Contributor

For variables with PII search strings in the variable name or label, blanks are removed from the variable so that only non-missing values are written to the output file:
data_no_blanks <- data[data[varname]!="",]

For date variables that are formatted as character strings (e.g. "2016-08-02"), this produces the following error:

Error in charToDate(x) : character string is not in a standard unambiguous format

@mbcarlos96 mbcarlos96 added the bug label Mar 9, 2018
@mbcarlos96 mbcarlos96 self-assigned this Mar 9, 2018
@mbcarlos96
Copy link
Contributor Author

Removal of blanks was removed from script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant