In R, Is it possible to use the reshape function to reshape a data-frame from wide to long with keeping the prefix of the name as the id and the suffix as the column names? 

For example, I might have a long data-frame like this:

```
log_a_mean | b_mean | c_mean | log_a_std | b_std | c_std | log_a_N | b_N | c_N
_______________________________________________________________________________

 1         |  2     |   3    |    4      |   5   |   6   |   7     |  8  | 9

```

And I want it to be reshaped to:

```
id    | mean  | std   | N
_____________________________
log_a |  1    | 4     | 7
  b   |  2    | 5     | 8
  c   |  3    | 6     | 9

```