删除字符串中除以外的非数字字符。和

时间:2018-10-26 18:37:56

标签: string vector character

v <- as.data.frame(c("POLYGON((100.1 200.2, 300.3 400.3))", "POLYGON((200.1 500.2, 300.3 400.3))", "POLYGON((700.1 600.2, 300.3 400.3))"))

colnames(v) <- c("coords")

我要删除POLYGON(()),但不要删除.,

0 个答案:

没有答案