NR name output1
1  a    pan
1  b    before
1  i    1
1  x    0.34679014
1  y    0.72680286
2  a    eks
2  b    before
2  i    2
2  x    0.75867996
2  y    0.52215111
3  a    wye
3  b    before
3  i    3
3  x    0.20460331
3  y    0.33831853
4  a    eks
4  b    before
4  i    4
4  x    0.38139939
4  y    0.13418874
5  a    wye
5  b    before
5  i    5
5  x    0.57328892
5  y    0.86362447
6  a    zee
6  b    before
6  i    6
6  x    0.52712616
6  y    0.49322129
7  a    eks
7  b    before
7  i    7
7  x    0.61178406
7  y    0.18788492
8  a    zee
8  b    before
8  i    8
8  x    0.59855401
8  y    0.97618139
9  a    hat
9  b    before
9  i    9
9  x    0.03144188
9  y    0.74955076
10 a    pan
10 b    before
10 i    10
10 x    0.50262601
10 y    0.95261836

NR names output2
1  a_a   before
1  i_a   before
1  x_a   before
1  y_a   before
2  a_a   before
2  i_a   before
2  x_a   before
2  y_a   before
3  a_a   before
3  i_a   before
3  x_a   before
3  y_a   before
4  a_a   before
4  i_a   before
4  x_a   before
4  y_a   before
5  a_a   before
5  i_a   before
5  x_a   before
5  y_a   before
6  a_a   before
6  i_a   before
6  x_a   before
6  y_a   before
7  a_a   before
7  i_a   before
7  x_a   before
7  y_a   before
8  a_a   before
8  i_a   before
8  x_a   before
8  y_a   before
9  a_a   before
9  i_a   before
9  x_a   before
9  y_a   before
10 a_a   before
10 i_a   before
10 x_a   before
10 y_a   before
