Re: [R] Get Specific Records from Another DataFrame

2018-03-24 Thread Jeff Newmiller
I suggest that you read the vignette for the data table package. That package uses some odd syntax compared to base R but has some features designed especially for these kinds of problems. -- Sent from my phone. Please excuse my brevity. On March 24, 2018 5:03:44 PM PDT, M Can wrote: >Hello >

[R] Get Specific Records from Another DataFrame

2018-03-24 Thread M Can
Hello I have been struggling with this simple looking problem. I have two dataframes. The first one contains ID, date, and revenue information for specific suppliers. id lastdate depvar A 5/10/2017 10 B 8/16/2017 20 C 2/14/2017 30 D 9/5/2017 40 E 8/1/2017 50 F 11/4/2017 60 G 6/22/2017 70 The secon

[R] How to integrate a dynamic code within a R script?

2018-03-24 Thread Luca Meyer
Hi, I am working on a script which should includes a dynamic listing, i.e. # SCRIPT BEGINS # some R procedures here # DYNAMIC PART BEGINS d1$X5 <-f1("AAA") d1$X5 <-f1("AAa") d1$X5 <-f1("ABa") # etc... d1$X6 <-f2("AAA") d1$X6 <-f2("AAs") d1$X6 <-f2("ABs") # etc... # DYNAMIC PART ENDS # other pr

Re: [R] MCMCglmm multinomial model results

2018-03-24 Thread Bert Gunter
Does not the sum of probabilities (on the untransformed scale) = 1, whence only 4 outcome categories to predict? Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" co

Re: [R] MCMCglmm multinomial model results

2018-03-24 Thread Michelle Kline
Hi David, Thanks for your comment. I haven't posted the data because they are unpublished and include human subjects so there are issues with sharing on a list serv, but I thought perhaps someone had encountered a similar problem and would already know the answer. I will reconsider whether my Uni