I am looking for a more efficient way of extracting particular columns from r and concatenating them.
r
I have tried the following:
r <-