Removing text containing non-english character
问题 This is my sample dataset: Name <- c("apple firm","苹果 firm","Ãpple firm") Rank <- c(1,2,3) data <- data.frame(Name,Rank) I would like to delete the Name containing non-English character. For this sample, only "apple firm" should stay. I tried to use the tm package, but it can only help me delete the non-english characters instead of the whole queries. 回答1: I would check out this related Stack Overflow post for doing the same thing in javascript. Regular expression to match non-English