实例 R 语言 使用转义字符以字符串形式输出单词

x
 
str <- "We are the so-called \"Vikings\", from the north."
str
cat(str)
                    

输出结果

[1] "We are the so-called \"Vikings\", from the north."
We are the so-called "Vikings", from the north.