Hi Dila,
If 'dat' is the dataset:
dat$C[dat$B==0] <- 0
A.K.
On Wednesday, April 9, 2014 1:30 AM, dila radi wrote:
Dear arun
Yes indeed..if the value in B is O..next value in the same row also 0..
other value than 0 remains unchanged.
On Apr 9, 2014 12:48 PM, "arun" wrote:
Dear Dila,
>
>What
On 04/08/2014 01:46 PM, dila radi wrote:
Hi all,
I have problem on how to replace value. I have this kind of data set:
structure(list(A = c(0, 12.6, 10.1, 8.1, 14.4, 0, 0, 0, 0, 0.5,
12.9, 25.9, 49, 0, 0, 0, 0, 0, 7.8), B = c(0, 0, 9.1, 9.3, 1.5,
1, 1, 1, 1.7, 6, 0, 0, 0, 1.7, 3.8, 0, 0, 0, 1),
Hi all,
I have problem on how to replace value. I have this kind of data set:
structure(list(A = c(0, 12.6, 10.1, 8.1, 14.4, 0, 0, 0, 0, 0.5,
12.9, 25.9, 49, 0, 0, 0, 0, 0, 7.8), B = c(0, 0, 9.1, 9.3, 1.5,
1, 1, 1, 1.7, 6, 0, 0, 0, 1.7, 3.8, 0, 0, 0, 1), C = c(1, 1,
9.10004, 9.2, 1.5,
3 matches
Mail list logo