I want to replace my NA values from a matrix acquired by :
read.table(…)
Those values should be the mean of the corresponding row.
I.e, the following row of the table :
1 2 1 NA 2 1 1 2
would become
1 2 1 1.43 2 1 2
Thank you.
I want to replace my NA values from a matrix acquired by :
read.table(…)
Those values should be the mean of the corresponding row.
I.e, the following row of the table :
1 2 1 NA 2 1 1 2
would become
1 2 1 1.43 2 1 2
Thank you.