Hi,
i have a dataframe like this
df = DataFrame()
df.id = sort!(repeat(1:3,5))
df.time = repeat(1:5,3)
df.dv1 = repeat(['.',".",".",".",1],3)
df.dv2 = repeat(['.',".",".",".",10],3)
df.cmt = repeat([1,1,1,1,2],3)
i just want to delete dv2 column, and insert non missing dv2 values in dv1 one column wherever time and id are matching. and change the df.cmt to 3 wherever df2 values were inserted. Here is the DataFrame i want.
df2 = DataFrame()
df2.id = sort!(repeat(1:3,6))
df2.time = repeat([1,2,3,4,5,5],3)
df2.dv = repeat(['.',".",".",".",1,10],3)
df2.cmt = repeat([1,1,1,1,2,3],3)
Hope i am clear. Thanks in advance.