在r中按空间分割字符串

2022-05-08

以下示例是关于R中包含在r中按空间分割字符串用法的示例代码,想了解在r中按空间分割字符串的具体用法?在r中按空间分割字符串怎么用?在r中按空间分割字符串使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:split strings by space in r源码类型:R
unlist(unique(strsplit("This is my test string.", " ")))
[1] "This"    "is"      "my"      "test"    "string."

本文地址:https://www.itbaoku.cn/snippets/785567.html