Learn R Programming

reticulate (version 1.37.0)

r-py-conversion: Convert between Python and R objects

Description

Convert between Python and R objects

Usage

r_to_py(x, convert = FALSE)

py_to_r(x)

Value

An R object, as converted from the Python object.

Arguments

x

A Python object.

convert

Boolean; should Python objects be automatically converted to their R equivalent? If set to FALSE, you can still manually convert Python objects to R via the py_to_r() function.