实例 R 语言 将字符串赋给变量

x
 
str <- "Hello"
str # print the value of str
                    

输出结果

[1] "Hello"