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

View source: R/python.R

as.character.python.builtin.bytesR Documentation

Convert Python bytes to an R character vector

Description

Convert Python bytes to an R character vector

Usage

## S3 method for class '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.


reticulate documentation built on Jan. 8, 2023, 1:09 a.m.