|
|
|
|
|
by markovbling
3459 days ago
|
|
Super easy to call R scripts from python - can use rpy2 to send dataframes from R to pandas or can just run an R script that outputs a csv to a folder and then read that in python... Legit 3 lines import rpy2.robjects as robjects
#
r_source = robjects.r['source']
r_source(‘myscript.R’)
#
print ‘r script finished running’
|
|