convert_python_to_r_object#
- convert_python_to_r_object(data, *, encoding='utf-8', format_version=DEFAULT_FORMAT_VERSION, r_version_serialized=DEFAULT_R_VERSION_SERIALIZED, constructor_dict=DEFAULT_CLASS_MAP)[source]#
Convert Python data to R object.
- Parameters:
data (Any) – Any Python object.
encoding (Encoding) – Encoding to be used for strings within data.
format_version (int) – File format version.
r_version_serialized (int) – R version written as the creator of the object.
constructor_dict (ConstructorDict) – Dictionary mapping Python classes to functions converting them to R classes.
- Returns:
Corresponding RObject object.
- Return type:
RObject
See also
convert_python_to_r_data