1 value
#1 2 -0.6029080
#2 5 -0.4721664
#3 -0.6353713
#4 2 -0.2857736
#5 1 0.1381082
#6 5 1.2276303
#7 4 -0.8017795
#8 5 -1.0803926
#9 -0.1575344
#10 1 -1.0717600
--
A.K.
From: Dominic Roye
To: arun
Sent:
029080
#2 5 -0.4721664
#3 -0.6353713
#4 2 -0.2857736
#5 1 0.1381082
#6 5 1.2276303
#7 4 -0.8017795
#8 5 -1.0803926
#9 -0.1575344
#10 1 -1.0717600
A.K.
- Original Message -
From: Dominic Roye
To: R help
Cc:
Sent: Tuesday, January 8, 2013 7:16 AM
Subject: [
R help
Cc:
Sent: Tuesday, January 8, 2013 7:16 AM
Subject: [R] Logical operator and lists
Hello R-Helpers,
I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list of
data.frames.
My idea is data[[
Hello, Dominic,
untested:
data <- lapply( data, function( x) x[ x == ""] <- NA
Hth -- Gerrit
On Tue, 8 Jan 2013, Dominic Roye wrote:
Hello R-Helpers,
I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list
Hello R-Helpers,
I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list of
data.frames.
My idea is data[[]][data==""] but it don´t work.
Thanks!!
Dominic
[[alternative HTML version deleted]]
___
5 matches
Mail list logo