1

I am able to transform from R's vector, list, matrix to python's corresponding object using reticulate.

However, is there any way to transform any R object to pythons's set object?

2
  • 1
    In which context do you like to do it? Are you importing R-wrapers within python or maybe using ipython/jupyter..... Commented Feb 26, 2019 at 20:30
  • @AurelianoGuedes I am using reticulate in R in Rstudio. Commented Feb 26, 2019 at 20:32

1 Answer 1

1

According to an issue in reticulate github:

library(reticulate)
pybuiltins <- import_builtins()
pybuiltins$set(list(1,2,3))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.