Learn R Programming

pinyin (version 1.1.6)

py: Convert strings of Chinese characters into Pinyin.

Description

Convert strings of Chinese characters into Pinyin.

Usage

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

Run this code
# NOT RUN {
py(dic = NA)
# }

Run the code above in your browser using DataLab