r - "read.table" converts every '+' in a column names to '.' -


i'm reading text file in r, using "read.table" function. text file table columns name. when try read text file, "read.table" converts every '+' in columns name '.'. example if in text file name of column is: "cd34+", after reading "read.table", converted to: "cd34.". tried set stringasfactors false, did not work.

does have idea solution?

thanks

you want use option check.names=false.

read.table(header=true, check.names=false, text="a+b c+d 0 1") ##   a+b c+d ## 1   0   1 

using option allows syntactically-invalid names.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -