I want to reshape my data frame by adding a row for each value in three different variables.
Current data structure:
Land  Date          P1  P2    P3    
bb    1990-10-26    S   F     G
bb    1994-10-11    S   <NA> <NA>
be    1999-09-29    S   C    <NA>
be    2004-10-13    S   C    <NA>
be    2009-11-06    C   L    <NA>
Desired output:
 P  land  Date
 S  bb   1990-10-26
 F  bb   1990-10-26
 G  bb   1990-10-26
 S  bb   1994-10-11
 S  be   1999-09-29
 C  be   1999-09-29
 S  be   2004-10-13
 C  be   2004-10-13
 C  be   2009-11-06
 L  be   2009-11-06
Therefore, each different value, except the NA's, of the variables P1, P2, P3 should be translated to a new row. I hope you can help me with my problem.
 
     
     
     
    