Learn R Programming

reticulate (version 1.37.0)

as.character.python.builtin.bytes: Convert Python bytes to an R character vector

Description

Convert Python bytes to an R character vector

Usage

# S3 method for python.builtin.bytes
as.character(x, encoding = "utf-8", errors = "strict", ...)

Arguments

x

object to be coerced or tested.

encoding

Encoding to use for conversion (defaults to utf-8)

errors

Policy for handling conversion errors. Default is 'strict' which raises an error. Other possible values are 'ignore' and 'replace'.

...

further arguments passed to or from other methods.