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.frame(数据,英文)

于 2016-08-07T05:02:14.760 回答