如何防止在R中读取特殊字符?

时间:2017-04-11 15:14:03

标签: r string

在python中,可以通过在字符串前添加\n来防止字符串被特殊字符(例如r >>> file_string=r'D:\MPhil\Experiments\WafergenPlates\GSS2265ShortTGFbTimeCourseAffeymetrix\GSS2265\Raw_Data' )解释,即

grid = [['.','.','0','0','.','0','0','.','.'],
        ['.','0','0','0','0','0','0','0','.'],
        ['.','0','0','0','0','0','0','0','.'],
        ['.','.','0','0','0','0','0','.','.'],
        ['.','.','.','0','0','0','.','.','.'],
        ['.','.','.','.','0','.','.','.','.'],
        ['.','.','.','.','.','.','.','.','.']]
print(grid)

我的问题是:什么是' R'当量?

0 个答案:

没有答案