Re: [R] creating tables with replacement

2017-10-18 Thread Marna Wagley
College Station, TX 77843-4352 > > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of PIKAL Petr > Sent: Wednesday, October 18, 2017 3:38 AM > To: Marna Wagley ; r-help mailing list < > r-help@r-project.org> > Subject: Re: [R]

Re: [R] creating tables with replacement

2017-10-18 Thread David L Carlson
oun...@r-project.org] On Behalf Of PIKAL Petr Sent: Wednesday, October 18, 2017 3:38 AM To: Marna Wagley ; r-help mailing list Subject: Re: [R] creating tables with replacement Hi maybe there is another more elegant solution but something like this > idx <- 1:nrow(dat1) > lll <- spl

Re: [R] creating tables with replacement

2017-10-18 Thread PIKAL Petr
--Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Marna > Wagley > Sent: Wednesday, October 18, 2017 9:46 AM > To: r-help mailing list > Subject: [R] creating tables with replacement > > Hi R User, > I am new in R and trying to creat

[R] creating tables with replacement

2017-10-18 Thread Marna Wagley
Hi R User, I am new in R and trying to create tables with selecting rows randomly (but with replacement) for each group but each group should have same number as original. Is it possible to create it using the following example data set? Your help is highly appreciated. dat1<-structure(list(Regio