Re: [R] How to optimizing the code for calculating the launch time

2014-08-06 Thread David McPearson
On Tue, 5 Aug 2014 09:51:56 +0300 Lingyi Ma wrote > My dataset: > > Item_IdYear_Month > B65623262 201204 > B58279745 201204 > B33671102 201204 > B36630946 201204 > B63270151 201204 > B63270133 201204 > > > > I have written my code to calculate one more c

[R] How to optimizing the code for calculating the launch time

2014-08-05 Thread Lingyi Ma
My dataset: Item_IdYear_Month B65623262 201204 B58279745 201204 B33671102 201204 B36630946 201204 B63270151 201204 B63270133 201204 I have written my code to calculate one more column which is the product maturity time as the following: launchtime<-functi