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

support for NA #78

Open
elfunesto opened this issue Jan 7, 2020 · 2 comments
Open

support for NA #78

elfunesto opened this issue Jan 7, 2020 · 2 comments

Comments

@elfunesto
Copy link

Thank you very much for this great package. Currently, I have not seen any way to deal with NA and get a "Can not parse NA_real_". It would be great to have a way to deal with this.
Regards

@Marlin-Na
Copy link
Member

One way to do it is to convert R's NA to SymEngine's NaN (i.e. S(NaN)). However I think NA and NaN in R have different semantics. NA means missing and does not have a good mapping in SymEngine. I would suggest you convert NA to NaN and then pass it to SymEngine's parser.

@elfunesto
Copy link
Author

Thank you for your answer, it fulfils my need!

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

No branches or pull requests

2 participants