Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
string<-c(" this is a string ")
文字列の両側 (または必要に応じて片側だけ) の空白を切り取り、R でこのような目的の文字に置き換えることは可能ですか? 空白の数は文字列の両側で異なり、置換時に保持する必要があります。
"~~~~~~~this is a string~~"