Add documentation page on migrating from R
See original GitHub issuePrior of writing it, it should probably be defined the scope of this documentation page. In my understanding, based on the definition in NEP 44, that would be a Reference Guide.
I see two possible ways of putting it:
- A short reference of commands and similarities/differences, similar to NumPy for Matlab users.
- A longer reference that not only cites similarities/differences, but helps the user to be productive while following NumPy standards.
The befenits I see in the first option: it would be much shorter, thus possibly quicker to write and publish; also, with the right presentation, it should be easy to read, allowing users to quickly start using NumPy to accomplish their goals.
In favor of the second option, we have the assumption that a longer introduction to NumPy, SciPy, and Python would give them a more productive start. For instance, R users usually have R Markdown right on their side, while NumPy users may decide to choose Jupyter; dataframes are part of R, while NumPy users could do same things in pure NumPy or use Pandas on top of it. With this in mind, the second option would contain an introduction to the SciPy ecossystem rather than be limited to NumPy.
Some ideas of topics:
- Philosophical differences between the two environments
- Data types
- vectors, lists, and dataframes vs NumPy and Pandas equivalents
- how to get the shape of an object
- Reading documentation of functions
?
,??
, andhelp
- official websites
- Reproducible research
- R Markdown vs Jupyter
- Distributions (RStudio vs Anaconda perhaps?)
- Indexing
- subsetting
- views
- copy
- Element-wise operations
- tell how NumPy will give them that, but pure Python might cause weird behavior
- Applying functions on elements/dimensions/array
- Descriptive statistics
- Other statistical functions/packages
- Reading/writing data to disk
- Plotting
- tydiverse vs SciPy
- Debugging/IDEs
- Interfacing between the two
- Deployment
Depending on the scope to be defined, some or few may be taken away from this main reference page. In that case, they might generate tutorials that would be linked for furter reading.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Good point. Pandas has a pretty extensive collection of docs, including Comparison with R / R libraries.
This could be very useful. I’m slightly hesitant though, since I have the feeling it belongs more naturally in the Pandas than the NumPy docs.
Reference Guide really is for the NumPy API docs. This would be a How-To I think (“how do I do X in Python vs. X in R”).