Re: [R] Help : delete at random

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Wed 02 Mar 2005 - 01:30:01 EST

Caroline TRUNTZER wrote:
> Hello
> I would like to delete some values at random in a data frame. Does
> anyone know how I could do?

What about sample()-ing (if I understand "at random" correctly) a certain number of values from 1:nrow(data) and using the result as negative index the data.frame?

Uwe Ligges

> With best regards
> Caroline
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Mar 02 02:00:38 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:38 EST