ChStr2pyc: Convert Chinese strings to pinyin.

Description Usage Arguments Value

View source: R/convert_pinyinCode.R

Description

Convert Chinese strings to pinyin.

Usage

1
2
ChStr2pyc(Chin.strs = "", method = c("toneless", "tone"),
  multi = FALSE, sep = "_", parallel = FALSE)

Arguments

method

Whether the output should be toned or toneless.

multi

Whether the output should contain more than one pinyin

sep

Character used to seperate different characters

parallel

Whether or not use parallel calculation

Chin.str

The string need to be converted

Value

pinyin code of Chin.str according to the lookup table in https://blog.csdn.net/chndata/article/details/41114771. The code is organized as Consonant + Main vowel + Connection Vowel + Tone. For example, these parts for mian4 is m, an, i, and 4, respectively.


realPrimoh/ChineseSimilarity documentation built on May 22, 2019, 2:20 p.m.