[R] command to change some vars to missing into my dataset
drj|m|emon @end|ng |rom gm@||@com
Fri Jul 6 00:44:25 CEST 2018
Looks like you have a matrix or data frame and want to change one or
more observations to NA. I think this will do the trick:
# assume the matrix or data frame is named "ajdat"
So if you want three NAs inserted, call:
On Fri, Jul 6, 2018 at 6:28 AM, Adam Z. Jabir <Adam.Z.Jabir using outlook.fr> wrote:
> I want to simulate missing at random for my dataset. Do you know an easy way to do it?
> I want to try not to have the missing’s for the same observations. I mean if one observation is been selected randomly to have missing I don’t want to have all the var of the same obs missing.
> I want to be able to choose rate of missing that should be applied.
> Envoyé à partir de Outlook<http://aka.ms/weboutlook>
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help