Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 reticulate 从 R 的向量、列表、矩阵转换为 python 的相应对象。
但是,有没有办法将任何 R 对象转换为 python 的 set 对象?
根据网状github中的一个问题:
library(reticulate) pybuiltins <- import_builtins() pybuiltins$set(list(1,2,3))