Re: [R] Logical operator and lists

2013-01-08 Thread arun
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:

Re: [R] Logical operator and lists

2013-01-08 Thread arun
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: [

Re: [R] Logical operator and lists

2013-01-08 Thread arun
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[[

Re: [R] Logical operator and lists

2013-01-08 Thread Gerrit Eichner
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

[R] Logical operator and lists

2013-01-08 Thread Dominic Roye
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]] ___