py: Convert strings of Chinese characters into Pinyin.

Description Usage Arguments Value Examples

Description

Convert strings of Chinese characters into Pinyin.

Usage

1
py(char = "", sep = "_", other_replace = NULL, dic = pydic())

Arguments

char

a string vector

sep

character. Seperation between the converted pinyin.

other_replace

NULL or character. Define how to convert non-Chinese characters in mychar. NULL means 'let it be'.

dic

the preloaded pinyin library using the pylib() function.

Value

pinyin of the given Chinese string.

Examples

1
py(dic = NA)

Example output

"dic" must be an environment.
[[1]]
NULL

pinyin documentation built on May 6, 2019, 1:08 a.m.

Related to py in pinyin...