用python调用r包

安装rpy2

pip install rpy2

加载

%load_ext rpy2.ipython

使用r包之前

%%R
例如
%%R
rm(list = ls())
library(ggplot2)

你可能感兴趣的:(r语言,开发语言)