Leo*_*eis 2 comments r read.table
我有R的问题,当我用R读入(使用read.table
函数)分隔文件(例如制表符分隔的文本文件)时,包含#
或'
字符的行将被静默删除.如何读入文件以便不删除包含这些字符的行?
默认值comment.char
是#
字符.你可以使用comment.char
参数来改变它,即
read.table(file, comment.char="@")
read.table(file, comment.char="##")
Run Code Online (Sandbox Code Playgroud)