Ułóż rzędy zgodnie z wektorem w R

#Arranging rows of df as a vector in r
df[match(target, df$name),]
Laughing Lobster