どうも、ちょげ(@chogetarou)です。
文字列(string)を全て大文字に変換する方法を紹介します。
方法

文字列(string)を全て大文字に変換するには、toupper()を使います。
まず、toupper()を呼び出します。
そして、toupper()の引数に文字列を指定します。
#text=対象の文字列
result <- toupper(text)
上記のtoupper()は、対象の文字列(string)を全て大文字に変換した結果を返します。
使用例
text <- "AbcdEfGHiJK"
result <- toupper(text)
print(result)
出力:
> print(result)
[1] "ABCDEFGHIJK"
コメント