Unable to print loop values in R

r

#1

Hi Kunal,

I have been working on a task from past 5 days,but did not got the correct solution.
Actually, i have 2 data frames in R named as d3, d4.

d3 conatins,

id projects frmdate todate
1 1 2015-10-01 2015-10-10
2 2 2015-10-01 2015-10-10


d4 contains

project id no_of_tc positive_tc negative addeddate_tc.
1 16 16 0 2015-06-19
Expert 1 15 15 0 2015-06-20
Expert 1 16 16 0 2015-06-21
Expert 1 13 13 0 2015-06-22
Expert 1 16 16 0 2015-06-23
Expert 1 14 13 1 2015-06-24
Expert 1 12 11 1 2015-06-25
Expert 1 13 11 2 2015-06-26
Q 2 13 12 1 2015-06-27
Q 2 15 14 1 2015-06-28


if d3 has 1st and 2nd projects, then we need to forecast by using no_of_tc from d4. if at all d3 contains other projects which dont have the no_of_tc in d4, then we should display the project id’s of those projects.

the result set should be in json format.

Some one please help out me.


#2

@Naveena,

Help me to understand the problem better, I would require snapshot of input data frames (d3 and d4) and also provide a sample output in data frame format only

Regards,
Imran