When I use the merge function below, it removes the actual row names and replaces them with numbers
x<- merge(y$total, z$total, by="row.names", all=TRUE)
Is there a solution to this? Thanks
Row.names   y   z
1          1  47 149
2         10 157 107
3         11  97  74
4         12 116  78
5         13  52  96
6         14  17  22
7         15   0   0
8         16 120  88
9         17 128  94
10        18  33  69
11        19  44   6
12         2   0   0
13        20  32  32
14         3  73  67
15         4 112 164
16         5   7  24
17         6  53  21
18         7   4  20
19         8 150 144
20         9  34  21
 
    