Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread R. Michael Weylandt
On Wed, Sep 12, 2012 at 8:36 AM, Vincy Pyne wrote: > Dear Mr Weylandt and R helpers, > > Thanks a lot for your suggestion. Unfortunately the "return" statement in > my original R code returns me different results which are obtained after > processing the function I have constructed. > > My requi

Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread PIKAL Petr
012 10:49 AM > To: Vincy Pyne > Cc: r-help > Subject: Re: [R] How to append the random no.s for different variables > in the same data.frame > > Hi > > It is good to cc to R help. It would be even better if you provide toy > data to illustrate what do you have and what

Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread PIKAL Petr
On Behalf Of Vincy Pyne > Sent: Wednesday, September 12, 2012 9:36 AM > To: R. Michael Weylandt > Cc: r-help@r-project.org > Subject: Re: [R] How to append the random no.s for different variables > in the same data.frame > > Dear Mr Weylandt and R helpers, > > Thank

Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread PIKAL Petr
Hi It is good to cc to R help. It would be even better if you provide toy data to illustrate what do you have and what do you want. Sometimes you will find solution when preparing such data yourself without need for posting to the rhelp. I am still not sure what do you really want to achieve s

Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread Vincy Pyne
Dear Mr Weylandt and R helpers, Thanks a lot for your suggestion. Unfortunately the "return" statement in my original R code returns me different results which are obtained after processing the function I have constructed. My requirement for storing the product-wise random numbers is just a pa

Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Vincy Pyne > Sent: Wednesday, September 12, 2012 8:51 AM > To: r-help@r-project.org > Subject: [R] How to append the random no.s for different varia

Re: [R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread R. Michael Weylandt
On Wed, Sep 12, 2012 at 7:51 AM, Vincy Pyne wrote: > Dear R helpers, > > (At the outset I sincerely apologize if I have not put forward my following > query properly, though I have tried to do so.) > > > Following is a curtailed part of my R - code where I am trying to generate > say 100 random

[R] How to append the random no.s for different variables in the same data.frame

2012-09-12 Thread Vincy Pyne
Dear R helpers, (At the outset I sincerely apologize if I have not put forward my following query properly, though I have tried to do so.) Following is a curtailed part of my R - code where I am trying to generate say 100 random no.s for each of the products under consideration. library(plyr