r - Unexpected symbol in read.table -
i trying read data with:
data <- read.table('pwaves.txt', header=true, row.names=1, sep='\t')
works ok,except got x in front of each number.like this:
x5 x6 x7 fcm 13.0 12.5 11.8 gk 10.9 10.5 10.2 gg 12.0 11.0 10.8
why?
isn't because headers numeric, r checks , transforms it. try add check.names=false
data <- read.table('pwaves.txt', header=true, row.names=1, check.names=false, sep='\t')
Comments
Post a Comment