> 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
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)
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
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
>
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
5 matches
Mail list logo