[R] Problems with read.table and data structure

2014-07-11 Thread Tim Richter-Heitmann
Hi there! I have huge datafile of 600 columns 360 samples: data - read.table(small.txt, header = TRUE, sep = \t, dec = ., row.names=1) The txt.file (compiled with excel) is showing me only numbers, however R gives me the structure of ANY column as factor. When i try stringsAsFactors=FALSE in

Re: [R] Problems with read.table and data structure

2014-07-11 Thread Marc Schwartz
On Jul 11, 2014, at 9:15 AM, Tim Richter-Heitmann trich...@uni-bremen.de wrote: Hi there! I have huge datafile of 600 columns 360 samples: data - read.table(small.txt, header = TRUE, sep = \t, dec = ., row.names=1) The txt.file (compiled with excel) is showing me only numbers,

Re: [R] Problems with read.table and data structure

2014-07-11 Thread Marc Schwartz
On Jul 11, 2014, at 2:36 PM, Marc Schwartz marc_schwa...@me.com wrote: On Jul 11, 2014, at 9:15 AM, Tim Richter-Heitmann trich...@uni-bremen.de wrote: Hi there! I have huge datafile of 600 columns 360 samples: data - read.table(small.txt, header = TRUE, sep = \t, dec = .,

Re: [R] Problems with read.table and data structure

2014-07-11 Thread David L Carlson
, 2014 9:16 AM To: R-help@r-project.org Subject: [R] Problems with read.table and data structure Hi there! I have huge datafile of 600 columns 360 samples: data - read.table(small.txt, header = TRUE, sep = \t, dec = ., row.names=1) The txt.file (compiled with excel) is showing me only numbers

Re: [R] Problems with read.table and data structure

2014-07-11 Thread William Dunlap
data - read.table(small.txt, header = TRUE, sep = \t, dec = ., row.names=1) ... Factor w/ 358 levels 0,123111694,..: 11 14 50 12 38 44 13 76 31 30 It looks like your data file used commas for the decimal point. Is that right? You used dec=. when reading it; does dec=, work better? Bill