0

I have a string like the one below:

地址123 Address123

It is actually a bilingual address which I need to split them into Chinese and English.

The program is not word Address does not always behind a bunch of numbers, it may be numbers, or sometimes another Chinese character. But you can assume that a space is in front of Address.

To make the things more complicated, English character can also be found in the Chinese address.

Can I split it using regular expression in R?

4

1 に答える 1

0

英語=str_extract(x,"[AZ]+([Az]+)*")

Data<-data.frame(Data,English)

于 2016-08-07T05:02:14.760 に答える