←back to thread

Big Book of R

(www.bigbookofr.com)
288 points sebg | 1 comments | | HN request time: 0.227s | source
Show context
kingkongjaffa ◴[] No.43647159[source]
What is the best way to integrate some R code with a python backend?

I’ve been tempted to port to python, but some of the stats libraries have no good counterparts, so, is there a ergonomic way to do this?

replies(5): >>43647179 #>>43647450 #>>43647806 #>>43647807 #>>43648782 #
1. bachmeier ◴[] No.43647450[source]
Not sure what you mean by "python backend". If you mean calling R from Python, rpy2 mentioned in the other comment works well. If you mean the other direction, RStudio has this all built in. This is probably the best place to start: https://rstudio.github.io/reticulate/articles/calling_python...