从R中的字符向量中删除一个字符字符串

时间:2018-09-09 20:35:15

标签: r

我想从R中的字符向量中删除字符串

示例输入:

  [1] "Species1"      "Species2"    
  [3] "Species3"      "Species4"    
  [5] "Species5"      "Species6"     
  ...

所需的输出(例如删除Species2并保留顺序)

  [1] "Species1"      "Species3"    
  [3] "Species4"      "Species5"    
  [5] "Species6"      "Species7"     

0 个答案:

没有答案