toPinyin: Convert a chinese text to pinyin format.

Description Usage Arguments Value Author(s) Examples

Description

Convert a chinese text to pinyin format.

Usage

1
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.

Author(s)

Jian Li <rweibo@sina.com>

Examples

1
2
3
4
## Not run: 
toPinyin("the quick red fox jumps over the lazy brown dog")

## End(Not run)

OOmegaPPanDDa/tmcn documentation built on May 7, 2019, 8:55 p.m.