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 b

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

2014-07-11 Thread David L Carlson
ent: Friday, July 11, 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)

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 wrote: > > On Jul 11, 2014, at 9:15 AM, Tim Richter-Heitmann > 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

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 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, however R >

[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