powered by
Convert Chinese characters into Pinyin.
pinyin(mychar = "", method = c("quanpin", "tone", "toneless"), sep = "_", nonezh_replace = NULL, multi = FALSE, only_first_letter = FALSE)
character. A Chinese character or string to convert to pinyin
character. The value can be:
'quanpin', for the standard form of pinyin (tones above letters),
'tone', for tones expressed with numbers,
'toneless', without tones
character. Seperation between the converted pinyin.
NULL or character. Define how to convert non-Chinese characters in mychar. NULL means 'let it be'.
logical. Whether display multiple pronounciations of a Chinese character or only the first pronounciation.
logical. Wheter only the first letter in pinyin.
pinyin of the given Chinese character.
# NOT RUN { pinyin() # }
Run the code above in your browser using DataLab