@revathi wrote:
i have vector like this
new_vect
[1] "b" "d" "c" "e" "h" "f" "g"and i have data frame like
b d
b c f g h
b c d e f h
c e g h
d
b
d enow i want to compare each row of dataframe with new_vect, and arrange the elements of row in dataframe as like in new_vect
for ex
in 2nd row of dataframe i have " b c f g h" these should arrange like "b c h f g"
Posts: 1
Participants: 1