Using R to shift values to the left of data.frame [duplicate]
问题 This question already has answers here : How to move cells with a value row-wise to the left in a dataframe [duplicate] (5 answers) Shifting non-NA cells to the left (5 answers) Closed last year . Okay, so I have this data.frame: A B C 1 yellow purple <NA> 2 <NA> <NA> yellow 3 orange yellow <NA> 4 orange <NA> brown 5 <NA> brown purple 6 yellow purple pink 7 purple green pink 8 yellow pink green 9 purple orange <NA> 10 purple <NA> brown And I am interested in taking all the missing values from