r-py-conversion

0th

Percentile

Convert between Python and R objects

Convert between Python and R objects

Usage
r_to_py(x, convert = FALSE)

py_to_r(x)

Arguments
x

A Python object.

convert

TRUE to automatically convert Python objects to their R equivalent. If you pass FALSE you can do manual conversion using the py_to_r() function.

Value

An R object, as converted from the Python object.

Aliases
  • r-py-conversion
  • r_to_py
  • py_to_r
Documentation reproduced from package reticulate, version 1.15, License: Apache License 2.0

Community examples

dr_hemdan@yahoo.com at Aug 19, 2020 reticulate v1.16

py_to_r(stat_info = os.stat(overlay_file))

dr_hemdan@yahoo.com at Aug 19, 2020 reticulate v1.16

py_to_r(stat_info = os.stat(overlay_file) with open(overlay_file) as f: file_content = f.read())