Python package for using R in Python
Project description
RWrapR
Features
RWrapR
is a python
package for using R inside of python.
It is built using rpy2
, but attempts to be more convient to use.
Ideally you should never have to worry about using R
objects,
instead treating R
functions as normal python
functions, where the inputs
and outputs are python
objects.
import rwrapr as wr
import pandas as pd
import numpy as np
dplyr = wr.library("dplyr")
dt = wr.library("datasets")
dplyr.last(x=np.array([1, 2, 3, 4]))
dplyr.last(x=[1, 2, 3, 4])
iris = dt.iris
df = dplyr.mutate(iris, Sepal = wr.lazily("round(Sepal.Length * 2, 0)"))
To do
1. Port all test files for SSB-GaussSuppression, and SSBtools
2. Names/Dimnames for Vectors/Arrays/Matrices
3. Factors/Ordered Vectors
4. Better warning handling (this will likely be tricky)
- Sometimes we will get datatypes which are incompatible,
e.g., warning accompanied by
Requirements
- TODO
Installation
You can install RWrapR via pip from PyPI:
pip install rwrapr
Usage
Please see the Reference Guide for details.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, RWrapR is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from Statistics Norway's SSB PyPI Template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rwrapr-0.1.3.tar.gz
.
File metadata
- Download URL: rwrapr-0.1.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 939df39b8852ba4480fdec119f54226f17bf153e726d8201a0e3aa9656e7b3ff |
|
MD5 | 1dcb9acddec1025f96c92213ad79530b |
|
BLAKE2b-256 | c98215f62baf960409897f24cb810e9fa5fb1eb952416534c736dfe759e1ee2d |
File details
Details for the file rwrapr-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: rwrapr-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a53af9baa9d876f5dabcc55a23df4fb36adbd59425e0ad21ec73529df5ad064f |
|
MD5 | eea6fd60ad9d62a2e074694a914ce28d |
|
BLAKE2b-256 | cf1efc583421267e2bd8a73a8d9cb17fd28497054c1ba9d630d5ae2617c367c0 |