Learn R Programming

pinyin (version 1.1.2)

pylib: A Pinyin library

Description

A Pinyin library

Usage

pylib(method = c("quanpin", "tone", "toneless"), multi = FALSE, 
    only_first_letter = FALSE)

Arguments

method

character. The value can be:

  • 'quanpin', for the standard form of pinyin (tones above letters),

  • 'tone', for tones expressed with numbers,

  • 'toneless', without tones

multi

logical. Whether display multiple pronounciations of a Chinese character or only the first pronounciation.

only_first_letter

logical. Wheter only the first letter in pinyin.

Value

character. a Pinyin library.

Examples

Run this code
# NOT RUN {
pylib()
# }

Run the code above in your browser using DataLab