[R] Help : delete at random
Sean Davis
sdavis2 at mail.nih.gov
Tue Mar 1 15:17:56 CET 2005
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 at 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
More information about the R-help
mailing list