Learn R Programming

tmcn (version 0.2-13)

toPinyin: Convert a chinese text to pinyin format.

Description

Convert a chinese text to pinyin format.

Usage

toPinyin(string, capitalize = FALSE)

Arguments

string

A character vector.

capitalize

Whether to capitalize the first letter of each word.

Value

A character vector in pinyin format.

Examples

Run this code
# NOT RUN {
toPinyin("the quick red fox jumps over the lazy brown dog")


# }

Run the code above in your browser using DataLab