Re: [R] resample from data frame: unlinked columns

2013-09-11 Thread arun
ject.org" Cc: Sent: Wednesday, September 11, 2013 6:20 AM Subject: [R] resample from data frame: unlinked columns Hello I am trying to resample from this data set (see below). The function I am using so far is doing it by considering A and B columns as linked. I used this function. >NUC

Re: [R] resample from data frame: unlinked columns

2013-09-11 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Rosario Garcia Gil > Sent: Wednesday, September 11, 2013 12:21 PM > To: r-help@r-project.org > Subject: [R] resample from data frame: unlinked columns &g

[R] resample from data frame: unlinked columns

2013-09-11 Thread Rosario Garcia Gil
Hello I am trying to resample from this data set (see below). The function I am using so far is doing it by considering A and B columns as linked. I used this function. >NUCh_rep<-replicate(500,data[sample(1:nrow(data),replace=T),],simplify=F) What I need is to resample (500 times) with replac