Re: [R] [FORGED] missing and replace

2017-04-26 Thread PIKAL Petr
f Rolf > Turner > Sent: Thursday, April 27, 2017 3:17 AM > To: Val > Cc: r-help@R-project.org (r-help@r-project.org) > Subject: Re: [R] [FORGED] missing and replace > > On 27/04/17 12:45, Val wrote: > > HI all, > > > > I have a data frame with three variabl

Re: [R] [FORGED] missing and replace

2017-04-26 Thread Rolf Turner
On 27/04/17 12:45, Val wrote: HI all, I have a data frame with three variables. Some of the variables do have missing values and I want to replace those missing values (1represented by NA) with the mean value of that variable. In this sample data, variable z and y do have missing values. The me