实例 R 语言 访问向量

x
 
fruits <- c("banana", "apple", "orange")
fruits[1]
                    

输出结果

[1] "banana"