toPinyin: Convert a chinese text to pinyin format.

Description Usage Arguments Value Author(s) Examples

View source: R/toPinyin.R

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 <[email protected]>

Examples

1
toPinyin("the quick red fox jumps over the lazy brown dog")

tmcn documentation built on March 18, 2018, 1:44 p.m.