Comments (3)
I'm a little bit unclear what you are trying to achieve here. But I think in general we don't have good handling for NA in the RProvider. Seems like NaNs are working correctly, but probably NAs are not.
If you have to resort to using evaluate (or anything on the R engine) then we have probably failed. Rather, we should have a way of representing NA on the F# side, so you can map your NaNs to NA on the F# side of things.
The natural way of doing this is probably using the Option type (so a sequence of Option would get converted into a numeric vector, where the None values are NA), or perhaps using Nullable?
Do you think that would work for you?
from rprovider.
Being able to "map to NA on the F# side of things" would be great, and I agree that using options makes sense.
I'm relatively new to F# (coming from R), but the alternatives I can think of are quite messy...
from rprovider.
This probably depends on what R.NET provides (I think it always returns N.A. as Double.NaN
), but it would be good to investigate and provide some option.
from rprovider.
Related Issues (20)
- Implement recommended community standards HOT 1
- Revise documentation for .net 5 release HOT 3
- Release a R v3.5+ legacy version for .net framework use HOT 1
- Remove requirement for R_HOME environment variable to be set
- Graphics are unresponsive on Windows and macOS HOT 2
- [Windows only] RProvider doesn't work with R > 4.0.2 HOT 7
- Replace "." with "_" in library names for consistency. HOT 1
- The RPovider is now at https://fslab.org/RProvider/ HOT 5
- Plugins not working with 2.0 beta
- Server fails to start on Apple Silicon
- Project build when referencing RProvider hangs forever (ubuntu-latest - github actions) HOT 2
- FSI printing for R SymbolicExpressions missing since change to #r nuget HOT 5
- 'Permission Denied' in some Github Actions CI scripts but not others
- Check code formatting with fantomas
- Docs build problems on windows github action HOT 1
- No Docs for how to extract values from test summaries HOT 3
- Running an fsx script from "Reading and writing RData files" with fsi throws a `System.Reflection.TargetInvocationException` exception. HOT 3
- Add support for running on aarch64 architecture HOT 9
- Be aware of installation problems in the documentation and with R path HOT 2
- Cannot use the lsr package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rprovider.