convert_python_to_r_data#

convert_python_to_r_data(data, *, encoding='utf-8', format_version=DEFAULT_FORMAT_VERSION, r_version_serialized=DEFAULT_R_VERSION_SERIALIZED, constructor_dict=DEFAULT_CLASS_MAP, file_type='rds')[source]#

Convert Python data to R data.

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.

  • file_type (FileType) – File type.

Returns:

Corresponding RData object.

Return type:

RData

See also

convert_python_to_r_object