An R developer frustrated with Python idioms built rfuns, a Python package that ports common R functions (like table(), sapply(), nchar(), which(), and many more) to Python with familiar names and vectorized behavior. The package wraps Python idioms behind R-style function interfaces, adds a Vec class for vectorized comparisons, and is published on PyPI. The post walks through the motivation, implementation details including a vectorization decorator and custom Vec class, the PyPI publishing process, and honest caveats about production use and team collaboration.

17m read timeFrom r-bloggers.com
Post cover image
Table of contents
StringsVectorsMathFilesTableFunctionalInspectUtilsRelated

Sort: