Replace space between two words with an underscore in a vector

前端 未结 2 647
慢半拍i
慢半拍i 2021-01-18 17:08

I have words, Genus species, and I want an underscore to replace the space between the two strings in R

Input:

>data$species
Genus species
         


        
2条回答
提交回复
热议问题