Re: [R] Help : delete at random

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Wed 02 Mar 2005 - 01:17:56 EST

Caroline,

You probably want to look at ?sample.

Use sample to choose the rows for deletion then use:

df.new = df[-sampled,]

Sean

On Mar 1, 2005, at 9:04 AM, Caroline TRUNTZER wrote:

> Hello
> I would like to delete some values at random in a data frame. Does
> anyone know how I could do?
> 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 01:49:30 2005

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